Open voxpelli opened 9 months ago
One thing I noticed when running Mocha on Bun: When there is a test failure, Mocha's exit code is 0, making it appear that CI is passing if you don't look at the console output.
👍 we've been chatting about this off-and-on for most of this year. We're generally in favor.
I think in order for this to happen, we'd need to roll out slowly. Here's a strategy proposal:
main
branch & on PRs with a particular label?This is lower priority than work on Mocha 11 (https://github.com/mochajs/mocha/milestone/65) or 12 (https://github.com/mochajs/mocha/milestone/66), but would be great down the road.
Feature Request Checklist
faq
label, but none matched my issue.Overview
As mentioned in https://github.com/mochajs/mocha/issues/5065#issuecomment-1967346075, https://github.com/wintercg/proposal-common-minimum-api/issues/68 and https://twitter.com/_nicojs/status/1762508703863894472:
There is a need for a cross-runtime testing library.
Mocha already supports browsers and node.js, what would it take to support eg. Deno and Bun as well?
Suggested Solution
Research what would be needed to support Bun and Deno and evaluate the feasibility.
Alternatives
Standardizing on a shared built in test API and move away from Mocha: https://github.com/wintercg/proposal-common-minimum-api/issues/68
This would only solve it for those runtimes who are compliant with the WinterCG proposal though and not work for eg browsers. It also would mean running the tests in multiple different implementations of the same test framework, which can have unexpected consequences.
Additional Info
No response