You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Mock}from'bun:test';describe('Login X',()=>{it('should render an accessible Login component with text',async()=>{expect(true).toBe(true);});
Running this test will result in the next output in the console:
bun test v1.1.38 (bf2f153f)
src/components/LoginButton/LoginX.spec.tsx:
============================================================
Bun v1.1.38 (bf2f153f) macOS Silicon
macOS v14.6.1
Args: "bun" "test" "/<PATH_TO_PROJECT>/src/components/LoginButton/LoginX.spec.tsx" "-t" "Login X"
Features: bunfig jsc transpiler_cache(11) tsconfig(3)
Builtins: "node:buffer" "node:child_process" "node:crypto" "node:fs" "node:http" "node:https" "node:net" "node:os" "node:perf_hooks" "node:stream" "node:stream/web" "node:string_decoder" "node:tty" "node:url" "node:util" "node:util/types" "node:vm" "node:zlib"
Elapsed: 240ms | User: 312ms | Sys: 77ms
RSS: 0.16GB | Peak: 0.16GB | Commit: 0.90GB | Faults: 54
panic(main thread): Segmentation fault at address 0xBD
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
While running it like this, with type in front of Mock:
import{typeMock}from'bun:test';describe('Login X',()=>{it('should render an accessible Login component with text',async()=>{expect(true).toBe(true);});
it succeeds with success
Expected behaviour
When an import does not work (for whatever reason), return a proper message and do not crach
Relevant log output
Stack Trace (bun.report)
Bun v1.1.38 (bf2f153) on macos aarch64 [TestCommand]
How can we reproduce the crash?
What version of Bun is running?
1.1.38
What platform is your computer?
macOS 14.6.1 (23G93)
What steps can reproduce the bug?
Run this minimal test
Running this test will result in the next output in the console:
While running it like this, with
type
in front ofMock
:it succeeds with success
Expected behaviour
When an import does not work (for whatever reason), return a proper message and do not crach
Relevant log output
Stack Trace (bun.report)
Bun v1.1.38 (
bf2f153
) on macos aarch64 [TestCommand]Segmentation fault at address 0x000000BD
llint_entry
vmEntryToJavaScript
JSC::Interpreter::executeModuleProgram
JSC::JSModuleRecord::evaluate
JSC::JSModuleLoader::evaluate
Features: bunfig, jsc, transpiler_cache, tsconfig
Sentry Issue: BUN-3NN
The text was updated successfully, but these errors were encountered: