@entreprise-os/vitest-config 2.4.104 → 2.4.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.ts +25 -0
- package/data.ts +25 -0
- package/package.json +4 -2
- package/ui.ts +25 -0
package/app.ts
CHANGED
|
@@ -14,5 +14,30 @@ export function createAppConfig(aliasName: string, srcPath: string = "./src") {
|
|
|
14
14
|
[aliasName]: path.resolve(process.cwd(), srcPath),
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
|
+
test: {
|
|
18
|
+
coverage: {
|
|
19
|
+
provider: "v8",
|
|
20
|
+
reporter: ["text", "json"],
|
|
21
|
+
reportsDirectory: "./coverage",
|
|
22
|
+
include: ["src/**/*.ts", "src/**/*.tsx"],
|
|
23
|
+
exclude: [
|
|
24
|
+
"src/**/*.test.ts",
|
|
25
|
+
"src/**/*.test.tsx",
|
|
26
|
+
"src/**/*.spec.ts",
|
|
27
|
+
"src/**/*.spec.tsx",
|
|
28
|
+
"src/**/*.d.ts",
|
|
29
|
+
"src/**/index.ts",
|
|
30
|
+
"src/**/__tests__/**",
|
|
31
|
+
"src/**/__mocks__/**",
|
|
32
|
+
],
|
|
33
|
+
all: true,
|
|
34
|
+
thresholds: {
|
|
35
|
+
statements: 0,
|
|
36
|
+
branches: 0,
|
|
37
|
+
functions: 0,
|
|
38
|
+
lines: 0,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
17
42
|
});
|
|
18
43
|
}
|
package/data.ts
CHANGED
|
@@ -22,5 +22,30 @@ export default defineConfig({
|
|
|
22
22
|
hookTimeout: 100000,
|
|
23
23
|
// Setup files to run before all tests - automatically mocks authentication middleware
|
|
24
24
|
setupFiles: ["@entreprise-os/core-data/test-utils/test-helpers"],
|
|
25
|
+
// Coverage configuration
|
|
26
|
+
coverage: {
|
|
27
|
+
provider: "v8",
|
|
28
|
+
reporter: ["text", "json"],
|
|
29
|
+
reportsDirectory: "./coverage",
|
|
30
|
+
include: ["db/**/*.ts", "trpc/**/*.ts", "**/*.ts"],
|
|
31
|
+
exclude: [
|
|
32
|
+
"**/*.test.ts",
|
|
33
|
+
"**/*.spec.ts",
|
|
34
|
+
"**/*.d.ts",
|
|
35
|
+
"**/index.ts",
|
|
36
|
+
"**/__tests__/**",
|
|
37
|
+
"**/__mocks__/**",
|
|
38
|
+
"**/test-utils/**",
|
|
39
|
+
"**/migrations/**",
|
|
40
|
+
"coverage/**",
|
|
41
|
+
],
|
|
42
|
+
all: true,
|
|
43
|
+
thresholds: {
|
|
44
|
+
statements: 0,
|
|
45
|
+
branches: 0,
|
|
46
|
+
functions: 0,
|
|
47
|
+
lines: 0,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
25
50
|
},
|
|
26
51
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entreprise-os/vitest-config",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.106",
|
|
4
4
|
"description": "Shared Vitest configuration for Enterprise OS packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -13,13 +13,15 @@
|
|
|
13
13
|
"./tsdown-externals": "./tsdown-externals.ts"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"vitest": "^3.2.4"
|
|
16
|
+
"vitest": "^3.2.4",
|
|
17
|
+
"@vitest/coverage-v8": "^3.2.4"
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
19
20
|
"tsx": "^4.19.2"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
23
|
"@types/node": "^24.3.0",
|
|
24
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
23
25
|
"vitest": "^3.2.4"
|
|
24
26
|
}
|
|
25
27
|
}
|
package/ui.ts
CHANGED
|
@@ -20,6 +20,31 @@ export function createUiConfig(
|
|
|
20
20
|
test: {
|
|
21
21
|
include: ["**/__tests__/**/*.test.{ts,tsx,js,jsx}"],
|
|
22
22
|
exclude: ["**/*.stories.*", "**/*.mdx", "**/dist/**"],
|
|
23
|
+
coverage: {
|
|
24
|
+
provider: "v8",
|
|
25
|
+
reporter: ["text", "json"],
|
|
26
|
+
reportsDirectory: "./coverage",
|
|
27
|
+
include: ["src/**/*.ts", "src/**/*.tsx"],
|
|
28
|
+
exclude: [
|
|
29
|
+
"src/**/*.test.ts",
|
|
30
|
+
"src/**/*.test.tsx",
|
|
31
|
+
"src/**/*.spec.ts",
|
|
32
|
+
"src/**/*.spec.tsx",
|
|
33
|
+
"src/**/*.stories.tsx",
|
|
34
|
+
"src/**/*.stories.ts",
|
|
35
|
+
"src/**/*.d.ts",
|
|
36
|
+
"src/**/index.ts",
|
|
37
|
+
"src/**/__tests__/**",
|
|
38
|
+
"src/**/__mocks__/**",
|
|
39
|
+
],
|
|
40
|
+
all: true,
|
|
41
|
+
thresholds: {
|
|
42
|
+
statements: 0,
|
|
43
|
+
branches: 0,
|
|
44
|
+
functions: 0,
|
|
45
|
+
lines: 0,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
23
48
|
},
|
|
24
49
|
});
|
|
25
50
|
}
|