Skip to content

Commit d7fbaf9

Browse files
committed
Fix rm() in missed test
1 parent ada452c commit d7fbaf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/time/test/get-running-time.test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import { getCache, saveCache } from '../cache.js'
66
import { cleanCache, getRunningTime } from '../get-running-time.js'
77

88
const EXAMPLE = join(__dirname, '../node_modules/nanoid/index.browser.js')
9+
const CACHE = join(__dirname, '..', '..', '.cache')
910

1011
afterEach(async () => {
1112
delete process.env.SIZE_LIMIT_FAKE_TIME
1213
cleanCache()
13-
await rm(join(__dirname, '..', '..', '.cache'))
14+
await rm(CACHE, { force: true, recursive: true })
1415
})
1516

1617
it('calculates running time', async () => {

0 commit comments

Comments
 (0)