Skip to content

Commit 811438b

Browse files
committed
import require only in ts
1 parent 0703f83 commit 811438b

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

packages/jest-core/src/__tests__/SnapshotInteractiveMode.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import chalk = require('chalk');
8+
import chalk from 'chalk'
99
import {KEYS} from 'jest-watcher';
1010
import SnapshotInteractiveMode from '../SnapshotInteractiveMode';
1111

packages/jest-core/src/__tests__/watch.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
'use strict';
1010

11-
import chalk = require('chalk');
11+
import chalk from 'chalk'
1212
import TestWatcher from '../TestWatcher';
1313
import {JestHook, KEYS} from 'jest-watcher';
1414

packages/jest-core/src/__tests__/watch_filename_pattern_mode.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
'use strict';
1010

11-
import chalk = require('chalk');
11+
import chalk from 'chalk'
1212
import {KEYS} from 'jest-watcher';
1313

1414
const runJestMock = jest.fn();

packages/jest-core/src/__tests__/watch_test_name_pattern_mode.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
'use strict';
1010

11-
import chalk = require('chalk');
11+
import chalk from 'chalk'
1212
import {KEYS} from 'jest-watcher';
1313

1414
const runJestMock = jest.fn();

packages/jest-diff/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ The `jest-diff` package does not assume that the 2 labels have equal length.
429429

430430
For consistency with most diff tools, you might exchange the colors:
431431

432-
```js
432+
```ts
433433
import chalk = require('chalk');
434434

435435
const options = {
@@ -442,7 +442,7 @@ const options = {
442442

443443
Although the default inverse of foreground and background colors is hard to beat for changed substrings **within lines**, especially because it highlights spaces, if you want bold font weight on yellow background color:
444444

445-
```js
445+
```ts
446446
import chalk = require('chalk');
447447

448448
const options = {
@@ -532,7 +532,7 @@ A patch mark like `@@ -12,7 +12,9 @@` accounts for omitted common lines.
532532

533533
If you want patch marks to have the same dim color as common lines:
534534

535-
```js
535+
```ts
536536
import chalk = require('chalk');
537537

538538
const options = {

packages/jest-reporters/src/__tests__/utils.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import path from 'path';
9-
import chalk = require('chalk');
9+
import chalk from 'chalk'
1010
import stripAnsi from 'strip-ansi';
1111
import {printDisplayName, trimAndFormatPath, wrapAnsiString} from '../utils';
1212

0 commit comments

Comments
 (0)