Repository navigation
Commit 4ca8b97
committed
test(write-to-file): assert the failed report by identity so the merged lint rule passes
The abortSubstringSelector that arrived on main in the fifteen commits this merge carries
applies to every spec lane, and it rejects a bare abort substring inside a toThrow argument.
The row that pins the rollback when the error report itself throws asserted
rejects.toThrow("aborted"), the exact string the stubbed handleError rejected with, so it went
red the moment main landed underneath it. A substring match would also pass on a raw SDK
error that merely contains the word, which is what the rule is for.
The row now asserts identity with the exact rejection the failing report produced, which is
the stronger claim, and no suppression was added: the suppressed count for this file did not
move and src/eslint-suppressions.json is byte-identical to the tree.
Measured at this head with eslint 9.39.5 run from src with --prune-suppressions
--max-warnings=0: exit 0 on the touched file. The four suites over this unit files pass with
vitest 4.1.12: 201 passed, 5 skipped, 4 test files.1 parent fbbf7bc commit 4ca8b97
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1033 | 1033 | | |
1034 | 1034 | | |
1035 | 1035 | | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
1039 | 1044 | | |
1040 | 1045 | | |
1041 | 1046 | | |
| |||
0 commit comments