Skip to content

Commit

Permalink
fix: add workaround for vitest to run unit tests again (#245)
Browse files Browse the repository at this point in the history
* fix: add workaround for transitive dependency with vitest, to run unit tests again

* fix: added comment explaining vitest issue workaround
  • Loading branch information
vroske-ld authored Aug 2, 2022
1 parent f2c8830 commit 138f291
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,13 @@ export default defineConfig({
statements: 80,
exclude: ['**/*.spec.tsx', '**/test/'],
},
/*
* An issue occurs when running all the unit tests with vitest
* See: https://github.com/vitest-dev/vitest/issues/1753
* TODO: remove the registerNodeLoader workaround when the issue has been resolved
*/
deps: {
registerNodeLoader: false,
},
},
});

0 comments on commit 138f291

Please sign in to comment.