diff --git a/.github/workflows/jest-coverage-report.yml b/.github/workflows/jest-coverage-report.yml index 352006c..7600a8e 100644 --- a/.github/workflows/jest-coverage-report.yml +++ b/.github/workflows/jest-coverage-report.yml @@ -12,4 +12,6 @@ jobs: uses: actions/checkout@v3 - name: Coverage Report - uses: ArtiomTr/jest-coverage-report-action@v2 \ No newline at end of file + uses: ArtiomTr/jest-coverage-report-action@v2 + with: + test-script: npm run test:ci diff --git a/package.json b/package.json index 2346385..bf65d73 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "lint": "eslint '{src,test}/**/*.ts'", "lint:fix": "eslint '{src,test}/**/*.ts' --fix", "test": "jest", + "test:ci": "jest --ci --json --coverage --testLocationInResults --outputFile=report.json", "coverage": "jest --coverage", "prepare": "husky install", "prepublish": "[ ! -d node_modules ] && npm ci; tsc",