Skip to content

Commit 30b4c94

Browse files
chore: Avoid running Vitest twice (#548)
* chore: Avoid running vitest twice * Update config for other pacakges * Remove double tests
1 parent bde39c2 commit 30b4c94

File tree

13 files changed

+23
-16
lines changed

13 files changed

+23
-16
lines changed

packages/form-core/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"test:types:versions50": "../../node_modules/typescript50/bin/tsc --noEmit",
4040
"test:types:versions51": "../../node_modules/typescript51/bin/tsc --noEmit",
4141
"test:types:versions52": "tsc --noEmit",
42-
"test:types": "pnpm run \"/^test:types:versions.*/\" && vitest --typecheck",
43-
"test:lib": "vitest run --coverage",
42+
"test:types": "pnpm run \"/^test:types:versions.*/\"",
43+
"test:lib": "vitest",
4444
"test:lib:dev": "pnpm run test:lib --watch",
4545
"test:build": "publint --strict",
4646
"build": "vite build"

packages/form-core/vite.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export default mergeConfig(
1212
watch: false,
1313
environment: 'jsdom',
1414
globals: true,
15-
coverage: { provider: 'istanbul' },
15+
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
16+
typecheck: { enabled: true },
1617
},
1718
}),
1819
)

packages/react-form/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"test:types:versions51": "../../node_modules/typescript51/bin/tsc --noEmit",
2020
"test:types:versions52": "tsc --noEmit",
2121
"test:types": "pnpm run \"/^test:types:versions.*/\"",
22-
"test:lib": "vitest run --coverage",
22+
"test:lib": "vitest",
2323
"test:lib:dev": "pnpm run test:lib --watch",
2424
"test:build": "publint --strict",
2525
"build": "vite build"

packages/react-form/vite.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export default mergeConfig(
1010
watch: false,
1111
environment: 'jsdom',
1212
globals: true,
13-
coverage: { provider: 'istanbul' },
13+
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
14+
typecheck: { enabled: true },
1415
},
1516
}),
1617
)

packages/solid-form/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"test:types:versions51": "../../node_modules/typescript51/bin/tsc --noEmit",
2020
"test:types:versions52": "tsc --noEmit",
2121
"test:types": "pnpm run \"/^test:types:versions.*/\"",
22-
"test:lib": "vitest run --coverage",
22+
"test:lib": "vitest",
2323
"test:lib:dev": "pnpm run test:lib --watch",
2424
"test:build": "publint --strict",
2525
"build": "vite build"

packages/solid-form/vite.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export default mergeConfig(
1313
setupFiles: [],
1414
environment: 'jsdom',
1515
globals: true,
16-
coverage: { provider: 'istanbul' },
16+
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
17+
typecheck: { enabled: true },
1718
server: {
1819
deps: {
1920
// https://github.com/solidjs/solid-testing-library#known-issues

packages/valibot-form-adapter/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"test:types:versions50": "../../node_modules/typescript50/bin/tsc --noEmit",
4040
"test:types:versions51": "../../node_modules/typescript51/bin/tsc --noEmit",
4141
"test:types:versions52": "tsc --noEmit",
42-
"test:types": "pnpm run \"/^test:types:versions.*/\" && vitest --typecheck",
43-
"test:lib": "vitest run --coverage",
42+
"test:types": "pnpm run \"/^test:types:versions.*/\"",
43+
"test:lib": "vitest",
4444
"test:lib:dev": "pnpm run test:lib --watch",
4545
"test:build": "publint --strict",
4646
"build": "vite build"

packages/valibot-form-adapter/vite.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export default mergeConfig(
1010
watch: false,
1111
environment: 'jsdom',
1212
globals: true,
13-
coverage: { provider: 'istanbul' },
13+
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
14+
typecheck: { enabled: true },
1415
},
1516
}),
1617
)

packages/vue-form/vite.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export default mergeConfig(
1111
environment: 'jsdom',
1212
globals: true,
1313
setupFiles: [],
14-
coverage: { provider: 'istanbul' },
14+
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
15+
typecheck: { enabled: true },
1516
},
1617
esbuild: {
1718
jsxFactory: 'h',

packages/yup-form-adapter/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"test:types:versions50": "../../node_modules/typescript50/bin/tsc --noEmit",
4040
"test:types:versions51": "../../node_modules/typescript51/bin/tsc --noEmit",
4141
"test:types:versions52": "tsc",
42-
"test:types": "pnpm run \"/^test:types:versions.*/\" && vitest --typecheck",
43-
"test:lib": "vitest run --coverage",
42+
"test:types": "pnpm run \"/^test:types:versions.*/\"",
43+
"test:lib": "vitest",
4444
"test:lib:dev": "pnpm run test:lib --watch",
4545
"test:build": "publint --strict",
4646
"build": "vite build"

packages/yup-form-adapter/vite.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export default mergeConfig(
1010
watch: false,
1111
environment: 'jsdom',
1212
globals: true,
13-
coverage: { provider: 'istanbul' },
13+
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
14+
typecheck: { enabled: true },
1415
},
1516
}),
1617
)

packages/zod-form-adapter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"test:types:versions51": "../../node_modules/typescript51/bin/tsc --noEmit",
4141
"test:types:versions52": "tsc",
4242
"test:types": "pnpm run \"/^test:types:versions.*/\"",
43-
"test:lib": "vitest run --coverage",
43+
"test:lib": "vitest",
4444
"test:lib:dev": "pnpm run test:lib --watch",
4545
"test:build": "publint --strict",
4646
"build": "vite build"

packages/zod-form-adapter/vite.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export default mergeConfig(
1010
watch: false,
1111
environment: 'jsdom',
1212
globals: true,
13-
coverage: { provider: 'istanbul' },
13+
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
14+
typecheck: { enabled: true },
1415
},
1516
}),
1617
)

0 commit comments

Comments
 (0)