ArtiomTr/jest-coverage-report-action

Tests run 2 times instead of 1

piotrwalczak1 opened this issue · 2 comments

Describe a bug

Why the tests run 2 times in a row instead of 1?
image

Then it's running it for the 2nd time?
image

Expected behavior

Only 1 test run should be present

Details

  • Action version: 2.3.0
  • OS, where your action is running (windows, linux): Linux
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v4
        with:
          node-version: ${{ matrix.node-version }}
      - uses: ArtiomTr/jest-coverage-report-action@v2.3.0
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          test-script: npm run test:ci

Additional context

In github actions I can see tests are run twice instead of just once.

I've seen the same issue in our pipelines. Looks like it's running jest twice.

@ piotrwalczak1 The process involves running a test twice to compare the coverage report between the base and feature branches. You can gauge the disparities by examining the differences in the statements, branches, lines, and function fields between the two test results.