From 1e18729f46396e2d24d0903bbfd62b879f1af878 Mon Sep 17 00:00:00 2001 From: Vincent Date: Tue, 6 Oct 2020 11:37:12 +0200 Subject: [PATCH] fixup! Use regular import in test --- test-types/top-level-jest-namespace.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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')),