[CSR-2026] fix: attempt status incorrect value #531
Annotations
2 errors
src/services/convert/__tests__/utils.test.ts > getTestCase > should return the correct structure when the test case has a failure:
packages/cmd/src/services/convert/__tests__/utils.test.ts#L190
AssertionError: expected { _t: 1735387200000, …(9) } to deeply equal { _t: 1735387200000, …(9) }
- Expected
+ Received
Object {
"_t": 1735387200000,
"attempts": Array [
Object {
"_s": "failed",
"attempt": 0,
"duration": 5000,
"error": Object {
"message": "Error message",
"stack": undefined,
"value": "AssertionError",
},
"errors": Array [
Object {
"message": "Error message",
"stack": undefined,
"value": "AssertionError",
},
],
"parallelIndex": 1,
"startTime": "2024-12-28T12:00:05.000Z",
- "status": "passed",
+ "status": "failed",
"stderr": Array [],
"stdout": Array [],
"steps": Array [],
"workerIndex": 1,
},
],
"expectedStatus": "skipped",
"isFlaky": false,
"location": Object {
"column": 1,
"file": "testfile.ts",
"line": 1,
},
"retries": 1,
"state": "failed",
"testId": "dc613ff86a9914bc",
"timeout": 0,
"title": Array [
"Test Suite",
"Test with failure",
],
}
❯ src/services/convert/__tests__/utils.test.ts:190:59
|
Unit Tests
Process completed with exit code 1.
|