Skip to content

Commit

Permalink
Globally reset mocks between each test
Browse files Browse the repository at this point in the history
  • Loading branch information
codykaup committed Oct 23, 2024
1 parent 95b6db1 commit 122c597
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { configDefaults, coverageConfigDefaults, defineConfig } from 'vitest/con
export default defineConfig({
test: {
exclude: [...configDefaults.exclude, '**/getParentCommits.test.ts'],
clearMocks: true, // Clear all mocks between each test
coverage: {
provider: 'v8',
exclude: [
Expand Down

0 comments on commit 122c597

Please sign in to comment.