Skip to content

Commit

Permalink
test: empty output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Nov 21, 2024
1 parent 1806c30 commit 219231c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vitest-setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { rm } from 'node:fs/promises'
import path from 'node:path'

await rm(path.resolve(__dirname, 'tests/temp'), {
force: true,
recursive: true,
})
1 change: 1 addition & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from 'vitest/config'

export default defineConfig({
test: {
setupFiles: 'vitest-setup.ts',
server: {
deps: {
external: [/node_modules/],
Expand Down

0 comments on commit 219231c

Please sign in to comment.