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

re-exporting beforeAll from "bun:test" crashes preload script #10554

Open
eigilsagafos opened this issue Apr 26, 2024 · 0 comments
Open

re-exporting beforeAll from "bun:test" crashes preload script #10554

eigilsagafos opened this issue Apr 26, 2024 · 0 comments
Labels
bug Something isn't working crash An issue that could cause a crash

Comments

@eigilsagafos
Copy link

How can we reproduce the crash?

lib.ts

import { beforeAll } from "bun:test"
export { beforeAll }

preload.ts

import { beforeAll } from "./lib"
beforeAll(() => {})

I want to be able to switch easily between vitest and bun:test so I import describe, test, expect, beforeAll from a lib file instead of directly from bun:test. beforeAll crashes in preload

Relevant log output

No response

Stack Trace (bun.report)

Bun v1.1.5 (#10527) on macos aarch64 [TestCommand]

Segmentation fault at address 0x000000BD

  • 3 unknown/js code
  • llint_entry
  • vmEntryToJavaScript
  • JSC::AbstractModuleRecord::evaluate
  • 1 unknown/js code
  • llint_entry
  • 2 unknown/js code
@eigilsagafos eigilsagafos added bug Something isn't working crash An issue that could cause a crash labels Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash An issue that could cause a crash
Projects
None yet
Development

No branches or pull requests

1 participant