Skip to content

Commit 3dedda2

Browse files
chore: improve coverage mapping
1 parent bc4c5c0 commit 3dedda2

File tree

6 files changed

+89
-43
lines changed

6 files changed

+89
-43
lines changed

knip.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"project": ["src/**/*.ts!", "tests/**/*.ts", "cz-adapter/**/*.ts"],
55
"ignoreDependencies": [
66
"@typescript-eslint/eslint-plugin-disable-type-checked",
7-
"glob",
87
"@vitest/coverage-c8"
98
],
109
"ignore": ["tests/fixture/file.ts"]

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
],
4747
"scripts": {
4848
"build": "pnpm run build:node && pnpm run build:docs",
49-
"build-tests": "rimraf tests-compiled && rollup -c rollup.config.tests.ts --configPlugin @rollup/plugin-typescript",
49+
"build-tests": "rimraf tests-compiled && tsc -p tsconfig.tests-compiled.json && tsc-alias -p tsconfig.tests-compiled.json",
5050
"build:docs": "eslint-doc-generator",
5151
"build:node": "rimraf lib && rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript",
5252
"cz": "git-cz",
@@ -123,7 +123,6 @@
123123
"eslint-plugin-sonarjs": "0.19.0",
124124
"eslint-plugin-unicorn": "48.0.1",
125125
"espree": "9.6.1",
126-
"glob": "10.3.3",
127126
"husky": "8.0.3",
128127
"knip": "2.17.1",
129128
"lint-staged": "13.2.3",
@@ -135,6 +134,7 @@
135134
"rollup-plugin-auto-external": "2.0.0",
136135
"semantic-release": "21.0.7",
137136
"ts-node": "10.9.1",
137+
"tsc-alias": "1.8.7",
138138
"tsconfig-paths": "4.2.0",
139139
"tslib": "2.6.1",
140140
"typescript": "5.1.6",

pnpm-lock.yaml

Lines changed: 77 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rollup.config.tests.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

tsconfig.tests-compiled.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"sourceMap": true,
5+
"outDir": "tests-compiled",
6+
"skipLibCheck": true
7+
},
8+
"include": ["src", "tests"]
9+
}

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const useCompiledTests = getBoolean(process.env["USE_COMPILED_TESTS"]);
1818

1919
const testFilePattern = `${
2020
useCompiledTests ? "tests-compiled" : "."
21-
}/**/*.test.${useCompiledTests ? "ts.js" : "ts"}`;
21+
}/**/*.test.${useCompiledTests ? "js" : "ts"}`;
2222

2323
export default defineConfig({
2424
plugins: [tsconfigPaths()],

0 commit comments

Comments
 (0)