Skip to content

Commit

Permalink
fix watch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed May 22, 2024
1 parent fb9ede4 commit 930edad
Show file tree
Hide file tree
Showing 3 changed files with 2,803 additions and 150 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"clear-cache": "rm -rf node_modules/.vite && rm -rf node_modules/.cache",
"perf": "hyperfine --runs 1 \"node_modules/.bin/vitest errorblock\" --show-output",
"test": "vitest run",
"test:report": "vitest run --reporter=json --reporter=verbose --outputFile=.test-results.json",
"test:report": "vitest dev -c vitest.node.config.ts --reporter=json --reporter=verbose --outputFile=.test-results.json",
"vitest:node": "vitest run -c vitest.node.config.ts storybook.test",
"vitest:browser": "vitest run -c vitest.browser.config.ts storybook.test",
"vitest:multibrowser": "vitest run --workspace vitest.workspace.config.ts storybook.test",
Expand Down Expand Up @@ -122,6 +122,7 @@
"prettier": "^3.2.5",
"react-is": "^18.3.1",
"react-test-renderer": "^18.3.1",
"storybook": "^8.1.2",
"vite": "^4.0.0",
"vite-plugin-svgr": "^4.2.0",
"vite-tsconfig-paths": "^4.3.2",
Expand Down
5 changes: 5 additions & 0 deletions vitest.node.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ console.log('opa')
export default mergeConfig(
viteConfig,
defineConfig({
server: {
watch: {
ignored: ['**/.test-results.json'],
},
},
test: {
globals: true,
clearMocks: true,
Expand Down
Loading

0 comments on commit 930edad

Please sign in to comment.