diff --git a/test-types/top-level-jest-namespace.test.ts b/test-types/top-level-jest-namespace.test.ts index 43f28aeea252..fe03300cdea5 100644 --- a/test-types/top-level-jest-namespace.test.ts +++ b/test-types/top-level-jest-namespace.test.ts @@ -10,7 +10,7 @@ import {expectError, expectType} from 'mlh-tsd'; //eslint-disable-next-line import/no-extraneous-dependencies import {jest} from '@jest/globals'; -import JestMock = require('jest-mock'); +import type {Mock} from 'jest-mock'; expectType(jest.addMatchers({})); expectType(jest.autoMockOff()); @@ -38,22 +38,22 @@ expectType(jest.resetModuleRegistry()); expectType(jest.resetModules()); expectType(jest.isolateModules(() => {})); expectType(jest.retryTimes(3)); -expectType, []>>( +expectType, []>>( jest .fn(() => Promise.resolve('string value')) .mockResolvedValueOnce('A string, not a Promise'), ); -expectType, []>>( +expectType, []>>( jest .fn(() => Promise.resolve('string value')) .mockResolvedValue('A string, not a Promise'), ); -expectType, []>>( +expectType, []>>( jest .fn(() => Promise.resolve('string value')) .mockRejectedValueOnce(new Error('An error, not a string')), ); -expectType, []>>( +expectType, []>>( jest .fn(() => Promise.resolve('string value')) .mockRejectedValue(new Error('An error, not a string')),