Skip to content

Commit

Permalink
Fix rm() in missed test
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 2, 2024
1 parent ada452c commit d7fbaf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/time/test/get-running-time.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import { getCache, saveCache } from '../cache.js'
import { cleanCache, getRunningTime } from '../get-running-time.js'

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

afterEach(async () => {
delete process.env.SIZE_LIMIT_FAKE_TIME
cleanCache()
await rm(join(__dirname, '..', '..', '.cache'))
await rm(CACHE, { force: true, recursive: true })
})

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

0 comments on commit d7fbaf9

Please sign in to comment.