Use jest.SpiedFunction instead of jest.SpyInstance

This commit is contained in:
Robert
2023-06-16 12:35:59 +01:00
parent 18e7431a44
commit 3a0aaa0ae9

View File

@@ -58,12 +58,16 @@ describe("FilePathDiscovery", () => {
let workspaceFolder: WorkspaceFolder;
let workspacePath: string;
let workspaceFoldersSpy: jest.SpyInstance;
let workspaceFoldersSpy: jest.SpiedFunction<
() => typeof workspace.workspaceFolders
>;
const onDidCreateFile = new EventEmitter<Uri>();
const onDidChangeFile = new EventEmitter<Uri>();
const onDidDeleteFile = new EventEmitter<Uri>();
let createFileSystemWatcherSpy: jest.SpyInstance;
let createFileSystemWatcherSpy: jest.SpiedFunction<
typeof workspace.createFileSystemWatcher
>;
const onDidChangeWorkspaceFolders =
new EventEmitter<WorkspaceFoldersChangeEvent>();