Skip to content

Commit 6cc62e1

Browse files
pdepetrometa-codesync[bot]
authored andcommitted
Make Tintype snapshot mocks compatible with Jest 29
Summary: Use unparameterized `jest.fn()` mocks in the shared snapshot provider tests. The OSS package pins `types/jest` 29, which rejects the single function-type generic accepted by the xplat environment. Existing mock wrappers already provide the required return-value casts. Reviewed By: aperez Differential Revision: D116864954 fbshipit-source-id: eec94982c62ba558e6ca8f3a4e7e5403763bcc2c
1 parent d57049e commit 6cc62e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vscode/core/src/snapshot/__tests__/snapshot-provider.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const mockShowErrorMessage = jest.fn();
1717
const mockShowInformationMessage = jest.fn();
1818
const mockShowWarningMessage = jest.fn();
1919
const mockShowSaveDialog = jest.fn();
20-
const mockStartDebugging = jest.fn<(...args: unknown[]) => Promise<boolean>>();
21-
const mockFsStat = jest.fn<(uri: unknown) => Promise<unknown>>();
20+
const mockStartDebugging = jest.fn();
21+
const mockFsStat = jest.fn();
2222

2323
type StartDebuggingCall = [workspaceFolder: unknown, config: Record<string, unknown>];
2424

0 commit comments

Comments
 (0)