Skip to content

Commit 6875134

Browse files
committed
import type for CJS imports
1 parent 0cd2bd2 commit 6875134

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/jest-circus/src/types.ts

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

88
// Used as type
99
import type {Circus} from '@jest/types';
10-
import expect = require('expect');
10+
import type expect = require('expect');
1111

1212
export const STATE_SYM = (Symbol(
1313
'JEST_STATE_SYMBOL',

packages/jest-globals/src/index.ts

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

88
import type {Jest} from '@jest/environment';
99
import type {Global} from '@jest/types';
10-
import importedExpect = require('expect');
10+
import type importedExpect = require('expect');
1111

1212
export declare const jest: Jest;
1313

packages/jest-jasmine2/src/types.ts

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

88
import type {AssertionError} from 'assert';
99
import type {Config} from '@jest/types';
10-
import expect = require('expect');
10+
import type expect = require('expect');
1111
import type CallTracker from './jasmine/CallTracker';
1212
import type Env from './jasmine/Env';
1313
import type JsApiReporter from './jasmine/JsApiReporter';

packages/jest-runner/src/types.ts

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 Emittery = require('emittery');
8+
import type Emittery = require('emittery');
99
import type {JestEnvironment} from '@jest/environment';
1010
import type {
1111
AssertionResult,

0 commit comments

Comments
 (0)