diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8bf425d..8e8e1fd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,7 +29,7 @@ jobs: run: yarn coverage - name: Generate junit.xml - run: JEST_JUNIT_CLASSNAME=\"{filepath}\" jest --reporters=jest-junit + run: yarn generate-junit - name: Upload results to Codecov uses: codecov/codecov-action@v5 diff --git a/package.json b/package.json index b00c950..63559ec 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "format": "prettier --check --ignore-path .prettierignore .", "format:fix": "prettier --write --ignore-path .prettierignore .", "test": "jest", - "coverage": "jest --coverage" + "coverage": "jest --coverage", + "generate-junit": "JEST_JUNIT_CLASSNAME=\"{filepath}\" jest --reporters=jest-junit" }, "dependencies": { "@arcjet/next": "^1.0.0-alpha.34",