Skip to content

Commit 1e18729

Browse files
committed
fixup! Use regular import in test
1 parent a09bd56 commit 1e18729

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test-types/top-level-jest-namespace.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import {expectError, expectType} from 'mlh-tsd';
1111
//eslint-disable-next-line import/no-extraneous-dependencies
1212
import {jest} from '@jest/globals';
13-
import JestMock = require('jest-mock');
13+
import type {Mock} from 'jest-mock';
1414

1515
expectType<void>(jest.addMatchers({}));
1616
expectType<typeof jest>(jest.autoMockOff());
@@ -38,22 +38,22 @@ expectType<typeof jest>(jest.resetModuleRegistry());
3838
expectType<typeof jest>(jest.resetModules());
3939
expectType<typeof jest>(jest.isolateModules(() => {}));
4040
expectType<typeof jest>(jest.retryTimes(3));
41-
expectType<JestMock.Mock<Promise<string>, []>>(
41+
expectType<Mock<Promise<string>, []>>(
4242
jest
4343
.fn(() => Promise.resolve('string value'))
4444
.mockResolvedValueOnce('A string, not a Promise'),
4545
);
46-
expectType<JestMock.Mock<Promise<string>, []>>(
46+
expectType<Mock<Promise<string>, []>>(
4747
jest
4848
.fn(() => Promise.resolve('string value'))
4949
.mockResolvedValue('A string, not a Promise'),
5050
);
51-
expectType<JestMock.Mock<Promise<string>, []>>(
51+
expectType<Mock<Promise<string>, []>>(
5252
jest
5353
.fn(() => Promise.resolve('string value'))
5454
.mockRejectedValueOnce(new Error('An error, not a string')),
5555
);
56-
expectType<JestMock.Mock<Promise<string>, []>>(
56+
expectType<Mock<Promise<string>, []>>(
5757
jest
5858
.fn(() => Promise.resolve('string value'))
5959
.mockRejectedValue(new Error('An error, not a string')),

0 commit comments

Comments
 (0)