Skip to content

Commit 4c4033f

Browse files
committed
Update vite config
1 parent 4bd64ca commit 4c4033f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "eslint src --ext js,jsx --report-unused-disable-directives --max-warnings 0",
1010
"preview": "vite preview",
1111
"prepare": "husky install",
12-
"test": "vitest run **/*.test.js",
12+
"test": "vitest run",
1313
"test:e2e": "playwright test",
1414
"prettier:format": "prettier --write --ignore-path .gitignore .",
1515
"prettier:check": "prettier --check --ignore-path .gitignore .",

vite.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// <reference types="vitest" />
12
import { fileURLToPath } from 'url';
23
import { dirname } from 'path';
34
import path from "path";
@@ -19,7 +20,7 @@ export default defineConfig(({ mode }) => {
1920
},
2021
plugins: [million.vite({ auto: true }), react()],
2122
test: {
22-
includeSource: ['src/**/*.test.js'],
23+
include: ['src/**/*.test.js'],
2324
},
2425
server: {
2526
watch: {

0 commit comments

Comments
 (0)