Skip to content

Commit 67a9b4f

Browse files
committed
chore: fix unit tests
1 parent 6f9a541 commit 67a9b4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/bin.destroy.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ describe('bin/destroy.ts', () => {
2626
})
2727

2828
it('main (no args)', async () => {
29+
// @ts-ignore
30+
spawnSync = vi.fn<typeof spawnSync>().mockReturnValue({ status: 0 })
2931
const tmpDir = getTempDir()
3032
const buildDir = path.join(tmpDir, 'build')
3133
fs.mkdirSync(buildDir)
@@ -64,6 +66,8 @@ describe('bin/destroy.ts', () => {
6466
})
6567

6668
it('main (with build)', async () => {
69+
// @ts-ignore
70+
spawnSync = vi.fn().mockReturnValue({ status: 0 })
6771
const tmpDir = getTempDir()
6872
const propsPath = path.join(tmpDir, '.adapterprops.json')
6973

0 commit comments

Comments
 (0)