build(typescript-config): add shared vitest base config
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "@repo/typescript-config",
|
"name": "@repo/typescript-config",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0"
|
"version": "0.0.0",
|
||||||
|
"type": "module",
|
||||||
|
"exports": {
|
||||||
|
"./base.json": "./base.json",
|
||||||
|
"./vitest.base": "./vitest.base.ts"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"vitest": "^3.1.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
15
packages/typescript-config/vitest.base.ts
Normal file
15
packages/typescript-config/vitest.base.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { defineConfig } from "vitest/config";
|
||||||
|
|
||||||
|
export const baseVitestConfig = defineConfig({
|
||||||
|
test: {
|
||||||
|
globals: true,
|
||||||
|
environment: "node",
|
||||||
|
include: ["src/**/*.test.ts", "src/**/*.test.tsx", "tests/**/*.test.ts"],
|
||||||
|
coverage: {
|
||||||
|
provider: "v8",
|
||||||
|
reporter: ["text", "html"],
|
||||||
|
include: ["src/**"],
|
||||||
|
exclude: ["src/**/*.test.{ts,tsx}", "src/**/index.ts"],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
@@ -437,7 +437,11 @@ importers:
|
|||||||
specifier: ^8.25.0
|
specifier: ^8.25.0
|
||||||
version: 8.58.0(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)
|
version: 8.58.0(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)
|
||||||
|
|
||||||
packages/typescript-config: {}
|
packages/typescript-config:
|
||||||
|
devDependencies:
|
||||||
|
vitest:
|
||||||
|
specifier: ^3.1.0
|
||||||
|
version: 3.2.4(@types/debug@4.1.13)(@types/node@25.5.2)(happy-dom@20.8.9)(jiti@2.6.1)(lightningcss@1.32.0)(sass@1.99.0)(tsx@4.21.0)
|
||||||
|
|
||||||
packages/ui:
|
packages/ui:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
Reference in New Issue
Block a user