From f0a096eff87fb35af3ea241f4a5262002d9f598e Mon Sep 17 00:00:00 2001 From: valkiriya Date: Tue, 13 Oct 2026 11:45:19 +0400 Subject: [PATCH] fix: false positives in isThrowingExpectedErrors --- lib/errors.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/errors.js b/lib/errors.js index 919fd002e0..005a2908a1 100644 --- a/lib/errors.js +++ b/lib/errors.js @@ -4,6 +4,7 @@ const isThrowingExpectedErrors = function (testsFuncs, expectedErrMsg) { const results = testsFuncs.map((f) => { try { f(); + return INCORRECT_RESULT_MSG; } catch (err) { if (isNotImplementedError(err)) { this.todo();