Skip to content

Commit

Permalink
👌 Add missed mock clearing options to vitest.
Browse files Browse the repository at this point in the history
  • Loading branch information
klondikemarlen committed Jun 5, 2024
1 parent de348b6 commit 18d6873
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ export default defineConfig({
singleThread: true,
},
},
// Mocking
clearMocks: true,
mockReset: true,
restoreMocks: true,
unstubEnvs: true,
unstubGlobals: true,
},
})

0 comments on commit 18d6873

Please sign in to comment.