From ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:26:15 +0800 Subject: [PATCH] TODO#139888 嚴選配對 - 文案修改 --- PAMapp/node_modules/@jest/environment/build/index.d.ts | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/PAMapp/node_modules/@jest/environment/build/index.d.ts b/PAMapp/node_modules/@jest/environment/build/index.d.ts index 9af4ea0..fe18ff0 100644 --- a/PAMapp/node_modules/@jest/environment/build/index.d.ts +++ b/PAMapp/node_modules/@jest/environment/build/index.d.ts @@ -8,7 +8,7 @@ import type { Context } from 'vm'; import type { LegacyFakeTimers, ModernFakeTimers } from '@jest/fake-timers'; import type { Circus, Config, Global } from '@jest/types'; -import type { fn as JestMockFn, spyOn as JestMockSpyOn, ModuleMocker } from 'jest-mock'; +import type { fn as JestMockFn, mocked as JestMockMocked, spyOn as JestMockSpyOn, ModuleMocker } from 'jest-mock'; export declare type EnvironmentContext = { console: Console; docblockPragmas: Record<string, string | Array<string>>; @@ -71,7 +71,9 @@ * the top of the code block. Use this method if you want to explicitly avoid * this behavior. */ - doMock(moduleName: string, moduleFactory?: () => unknown): Jest; + doMock(moduleName: string, moduleFactory?: () => unknown, options?: { + virtual?: boolean; + }): Jest; /** * Indicates that the module system should never return a mocked version * of the specified module from require() (e.g. that it should always return @@ -165,6 +167,7 @@ * jest.spyOn; other mocks will require you to manually restore them. */ restoreAllMocks(): Jest; + mocked: typeof JestMockMocked; /** * Runs failed tests n-times until they pass or until the max number of * retries is exhausted. This only works with `jest-circus`! -- Gitblit v1.8.0