Skip to content

Commit

Permalink
fix(test): set lcov output
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Jun 20, 2024
1 parent 00183d9 commit b49f842
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: npm ci

- name: Test
run: npm run coverage
run: npm run test

- uses: coverallsapp/github-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
verbose: true,
testEnvironment: 'node',
collectCoverage: true,
coverageReporters: ["json", "html"],
coverageReporters: ["json", "text", "lcov"],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"dev": "cross-env NODE_ENV=development nodemon --watch './src/**/*.ts' --exec node --loader ts-node/esm ./src/start.ts",
"lint": "eslint src --ext .ts",
"test": "NODE_OPTIONS=--experimental-vm-modules cross-env NODE_ENV=test jest --detectOpenHandles --runInBand --testTimeout=40000 --forceExit",
"coverage": "c8 npm run test",
"postinstall": "rm -rf ./node_modules/@josephg/resolvable/index.ts",
"prepare": "node -e \"try { require('husky').install() } catch (e) {}\""
},
Expand Down

0 comments on commit b49f842

Please sign in to comment.