diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e97b842..3058182 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -34,7 +34,7 @@ jobs: run: npm ci - name: Test - run: npm run coverage + run: npm run test - uses: coverallsapp/github-action@master with: diff --git a/jest.config.cjs b/jest.config.cjs index e0cc3a7..d14f515 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -5,7 +5,7 @@ module.exports = { verbose: true, testEnvironment: 'node', collectCoverage: true, - coverageReporters: ["json", "html"], + coverageReporters: ["json", "text", "lcov"], moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1', }, diff --git a/package.json b/package.json index 329946b..b70424a 100644 --- a/package.json +++ b/package.json @@ -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) {}\"" },