Commit c8ff80a
[test optimization] Fix vitest quarantined test fail status (#7769)
Add quarantined tests to `switchedStatuses` when their state is flipped
from fail to pass. This causes the reporter to publish the error channel
instead of the pass channel, so the plugin reports TEST_STATUS='fail'
to Datadog while vitest still sees the test as passing (exit code 0,
session passes).
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>1 parent 53a032e commit c8ff80a
File tree
2 files changed
+4
-2
lines changed- integration-tests/vitest
- packages/datadog-instrumentations/src
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1991 | 1991 | | |
1992 | 1992 | | |
1993 | 1993 | | |
1994 | | - | |
1995 | | - | |
| 1994 | + | |
1996 | 1995 | | |
1997 | 1996 | | |
1998 | 1997 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
664 | 667 | | |
665 | 668 | | |
666 | 669 | | |
| |||
0 commit comments