Skip to content

Commit

Permalink
deps-dev: Update vitest to version 0.34.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jpveooys committed Sep 11, 2023
1 parent 251f50f commit 87e711d
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 40 deletions.
76 changes: 38 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.0.4",
"vitest": "^0.34.3",
"vitest": "^0.34.4",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
},
Expand Down
5 changes: 4 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ export default defineConfig({
test: {
environment: 'happy-dom',
include: [`${__dirname}/src/**/*.test.{js,mjs,cjs,ts,mts,cts,jsx,tsx}`],
setupFiles: `${__dirname}/vitest/setup.ts`,
setupFiles: [
`${__dirname}/vitest/disableReactDevToolsMessage.ts`,
`${__dirname}/vitest/setup.ts`,
],
clearMocks: true,
},
resolve: {
Expand Down
1 change: 1 addition & 0 deletions vitest/disableReactDevToolsMessage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Object.defineProperty(globalThis, '__REACT_DEVTOOLS_GLOBAL_HOOK__', { value: { isDisabled: true } })

0 comments on commit 87e711d

Please sign in to comment.