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

[FEATURE] Bun support #452

Open
robertherber opened this issue Feb 11, 2024 · 2 comments
Open

[FEATURE] Bun support #452

robertherber opened this issue Feb 11, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@robertherber
Copy link

I'm trying to get a test suite running with Bun, but it seems to use node and jest no matter what I do. Feels like the wiring is under the hood and not configurable. It would be great to be able to run Reassure with Bun :)

@mdjastrzebski
Copy link
Member

I do not have too much knowledge about bun.

I've got some questions we could start with:

  • What command do you use in bun to run tests
  • Does bun uses any form of JIT?
  • Can you disable JIT in any way: CLI option, vm object call, etc?

@robertherber
Copy link
Author

robertherber commented Feb 11, 2024

I only know the answer to the first question - bun test :)

Expo for example is fully supporting Bun with all its tools now, and I get the feeling they're almost recommending it because of it's speed and reduced need for tooling.

Similarly to jest you can specify a test setup file, either with a --preload flag or in a bunfig.toml file.

Hopefully it's just a matter of being able to specify bun as the test runner instead of jest :)

Note that it supports TypeScript and ESM seamlessly, so that takes away a lot of complexity.

@mdjastrzebski mdjastrzebski added the help wanted Extra attention is needed label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants