diff --git a/extension/src/test/suite/experiments/data/index.test.ts b/extension/src/test/suite/experiments/data/index.test.ts index 83697a063b..9fb04b5d1d 100644 --- a/extension/src/test/suite/experiments/data/index.test.ts +++ b/extension/src/test/suite/experiments/data/index.test.ts @@ -31,7 +31,7 @@ suite('Experiments Data Test Suite', () => { describe('ExperimentsData', () => { it('should debounce all calls to update that are made within 200ms', async () => { - stub(Watcher, 'createFileSystemWatcher').resolves(mockWatcher) + stub(Watcher, 'createFileSystemWatcher').returns(mockWatcher) stub(Watcher, 'createNecessaryFileSystemWatcher').returns(mockWatcher) const { cliReader, internalCommands } = buildInternalCommands(disposable)