Skip to content

Commit f588f0c

Browse files
committed
mock fs.existsSync in test
1 parent 417afdd commit f588f0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/actions/find/tests/pluginManager.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe('loadPlugins', () => {
2424
isDirectory: () => true,
2525
} as unknown as fs.Stats
2626
})
27+
vi.spyOn(fs, 'existsSync').mockImplementation(() => true)
2728
})
2829

2930
describe('when plugins are not loaded', () => {

0 commit comments

Comments
 (0)