no-bare-return-from-test-catch
Disallow a bare return from a test catch block when it skips a later assertion.
Why
An unasserted catch return can swallow a failure and skip later assertions; the complete test result also depends on other assertions and hooks.
Fix
Rethrow the error, assert on it, or use the runner's explicit skip mechanism when the capability is optional.
Examples
test("decodes", () => { try { decode(); } catch { return; } expect(result()).toBe("ok");});test("decodes", () => { try { decode(); } catch (error) { throw error; } expect(result()).toBe("ok");});Files
**/*.test.***/*.spec.***/tests/****/__tests__/**