Skip to content

Commit aaa8edb

Browse files
authored
test: replace deprecated SpyInstance with MockInstance (#6579)
1 parent 6a73261 commit aaa8edb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cache-utils/tests/dir.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { promises as fs } from 'fs'
22

33
import { pathExists } from 'path-exists'
4-
import { SpyInstance, afterEach, beforeEach, expect, test, vi } from 'vitest'
4+
import { MockInstance, afterEach, beforeEach, expect, test, vi } from 'vitest'
55

66
import { restore, save } from '../src/main.js'
77

88
import { createTmpDir, removeFiles } from './helpers/main.js'
99

1010
let cacheDir, srcDir: string
11-
let cwdSpy: SpyInstance<[], string>
11+
let cwdSpy: MockInstance<() => string>
1212

1313
beforeEach(async () => {
1414
cacheDir = await createTmpDir()

0 commit comments

Comments
 (0)