Skip to content

Commit

Permalink
chore: improve coverage mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Jul 28, 2023
1 parent bc4c5c0 commit 3dedda2
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 43 deletions.
1 change: 0 additions & 1 deletion knip.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"project": ["src/**/*.ts!", "tests/**/*.ts", "cz-adapter/**/*.ts"],
"ignoreDependencies": [
"@typescript-eslint/eslint-plugin-disable-type-checked",
"glob",
"@vitest/coverage-c8"
],
"ignore": ["tests/fixture/file.ts"]
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
],
"scripts": {
"build": "pnpm run build:node && pnpm run build:docs",
"build-tests": "rimraf tests-compiled && rollup -c rollup.config.tests.ts --configPlugin @rollup/plugin-typescript",
"build-tests": "rimraf tests-compiled && tsc -p tsconfig.tests-compiled.json && tsc-alias -p tsconfig.tests-compiled.json",
"build:docs": "eslint-doc-generator",
"build:node": "rimraf lib && rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript",
"cz": "git-cz",
Expand Down Expand Up @@ -123,7 +123,6 @@
"eslint-plugin-sonarjs": "0.19.0",
"eslint-plugin-unicorn": "48.0.1",
"espree": "9.6.1",
"glob": "10.3.3",
"husky": "8.0.3",
"knip": "2.17.1",
"lint-staged": "13.2.3",
Expand All @@ -135,6 +134,7 @@
"rollup-plugin-auto-external": "2.0.0",
"semantic-release": "21.0.7",
"ts-node": "10.9.1",
"tsc-alias": "1.8.7",
"tsconfig-paths": "4.2.0",
"tslib": "2.6.1",
"typescript": "5.1.6",
Expand Down
80 changes: 77 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 0 additions & 36 deletions rollup.config.tests.ts

This file was deleted.

9 changes: 9 additions & 0 deletions tsconfig.tests-compiled.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"sourceMap": true,
"outDir": "tests-compiled",
"skipLibCheck": true
},
"include": ["src", "tests"]
}
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const useCompiledTests = getBoolean(process.env["USE_COMPILED_TESTS"]);

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

export default defineConfig({
plugins: [tsconfigPaths()],
Expand Down

0 comments on commit 3dedda2

Please sign in to comment.