-
Notifications
You must be signed in to change notification settings - Fork 59
Description
Describe the bug
Firstly, I'm not sure if this is a Pactum or Vitest issue but I think it's probably more here.
When writing Pactum tests in the Builder style, if you're using Vitest as the test runner and have the github-actions reporter configured then the test failures aren't correctly reported.
They are correctly reported if you use the BDD style tests
To Reproduce
See https://github.com/sazzer/vitest-gha
In particular, see https://github.com/sazzer/vitest-gha/actions/runs/10849090321 as a test run with this problem. There are two test failures - one for each of Builder and BDD style - but only one annotation added to the action.
Expected behavior
Annotations added for test failures in both the Builder and BDD style tests.
Software (please complete the following information):
- OS: Running on Github Actions
ubuntu-latest
runner - NodeJS Version: latest
- Test Runner: vitest