Skip to content

Commit

Permalink
ci: tweak coverage for github builds
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredReisinger committed Jul 19, 2024
1 parent 3ffb965 commit 164d27f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .ava.dist.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
files: ['dist/**/*.test.*'],
extensions: {
js: true,
},
};
7 changes: 7 additions & 0 deletions .ava.tsimp.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
files: ['src/**/*.test.*'],
extensions: {
ts: 'module',
},
nodeArguments: ['--import=tsimp/import'],
};
16 changes: 5 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
"dev": "node --import=tsimp/import src/stub.ts",
"clean": "rm -r .tsimp coverage dist",
"lint": "eslint ./src",
"test": "ava",
"test:coverage": "c8 --all --src src --exclude 'src/stub.ts' --exclude 'src/wc/woocommerce-types.ts' --per-file --reporter lcov --reporter text npm test",
"coverage": "npm run test:coverage",
"test": "ava --config .ava.tsimp.config.js",
"test:coverage": "c8 --all --src src --exclude 'src/stub.ts' --exclude 'src/wc/woocommerce-types.ts' --per-file --reporter lcov --reporter text npm run test",
"test:dist": "npm run build && npx ava --config .ava.dist.config.js",
"test:dist:coverage": "c8 --all --src src --exclude 'src/stub.ts' --exclude 'src/wc/woocommerce-types.ts' --per-file --reporter lcov --reporter text npm run test:dist",
"coverage": "npm run test:dist:coverage",
"codecov": "codecov",
"commit": "git-cz",
"release": "semantic-release",
Expand Down Expand Up @@ -108,14 +110,6 @@
"eslint": "^9.7.0"
}
},
"ava": {
"extensions": {
"ts": "module"
},
"nodeArguments": [
"--import=tsimp/import"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
Expand Down

0 comments on commit 164d27f

Please sign in to comment.