Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beforeAll error is swallowed #4422

Closed
Electroid opened this issue Aug 31, 2023 · 1 comment
Closed

beforeAll error is swallowed #4422

Electroid opened this issue Aug 31, 2023 · 1 comment
Labels
bug Something isn't working bun:test Something related to the `bun test` runner

Comments

@Electroid
Copy link
Contributor

What version of Bun is running?

0.8.2 9334fbe9b4facdfa9057a25e88e998f1fd2e346a

What platform is your computer?

Darwin 22.2.0 arm64 arm

What steps can reproduce the bug?

File

import { beforeAll, test, expect } from "bun:test";

beforeAll(() => {
  throw new Error("Oops");
});

test("test", () => {});

Output:

bun test v0.8.2 (9334fbe9)

file.test.ts:
✗ test

 0 pass
 1 fail
Ran 1 tests across 1 files. [13.00ms]

What is the expected behavior?

You would expect the error message to get printed, but it does not.

What do you see instead?

No response

Additional information

No response

@Electroid Electroid added bug Something isn't working bun:test Something related to the `bun test` runner labels Aug 31, 2023
@Jarred-Sumner
Copy link
Collaborator

No longer occurs as of Bun v1.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bun:test Something related to the `bun test` runner
Projects
None yet
Development

No branches or pull requests

2 participants