Skip to content

Commit 3a0aaa0

Browse files
Use jest.SpiedFunction instead of jest.SpyInstance
1 parent 18e7431 commit 3a0aaa0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

extensions/ql-vscode/test/vscode-tests/minimal-workspace/common/vscode/file-path-discovery.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,16 @@ describe("FilePathDiscovery", () => {
5858

5959
let workspaceFolder: WorkspaceFolder;
6060
let workspacePath: string;
61-
let workspaceFoldersSpy: jest.SpyInstance;
61+
let workspaceFoldersSpy: jest.SpiedFunction<
62+
() => typeof workspace.workspaceFolders
63+
>;
6264

6365
const onDidCreateFile = new EventEmitter<Uri>();
6466
const onDidChangeFile = new EventEmitter<Uri>();
6567
const onDidDeleteFile = new EventEmitter<Uri>();
66-
let createFileSystemWatcherSpy: jest.SpyInstance;
68+
let createFileSystemWatcherSpy: jest.SpiedFunction<
69+
typeof workspace.createFileSystemWatcher
70+
>;
6771

6872
const onDidChangeWorkspaceFolders =
6973
new EventEmitter<WorkspaceFoldersChangeEvent>();

0 commit comments

Comments
 (0)