Files
bun.sh/test/regression/issue/19850/err-in-hook-and-multiple-tests.ts
190n 6b14f77252 fix nonsense test name and elapsed time when beforeEach callback has thrown (#21118)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-17 02:02:57 -07:00

9 lines
155 B
TypeScript

import { beforeEach, test } from "bun:test";
beforeEach(() => {
throw new Error("beforeEach");
});
test("test 0", () => {});
test("test 1", () => {});