Skip to content

Commit

Permalink
Merge pull request #415 from defencedigital/dependabot/npm_and_yarn/h…
Browse files Browse the repository at this point in the history
…appy-dom-11.0.2

deps-dev: Bump happy-dom from 10.11.2 to 11.0.2
  • Loading branch information
jpveooys committed Sep 11, 2023
2 parents eaeb164 + 87e711d commit 8af1676
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 45 deletions.
84 changes: 42 additions & 42 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unicorn": "^48.0.1",
"glob": "^10.3.4",
"happy-dom": "^10.11.2",
"happy-dom": "^11.0.2",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"postcss-cli": "^10.1.0",
Expand All @@ -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 8af1676

Please sign in to comment.