Skip to content

🚀 Feature: Add support for additional runtimes like Bun and Deno #5108

Open
@voxpelli

Description

Feature Request Checklist

Overview

As mentioned in #5065 (comment), wintercg/proposal-minimum-common-api#68 and https://twitter.com/_nicojs/status/1762508703863894472:

Nicholas C. Zakas @slicknet
What I want: To write JavaScript tests once and be able to run them across Node.js, Bun, and Deno.
Problem: Bun and Deno have built-in test runners you have to import from to run tests. I use Mocha. This doesn't work.
Solution: ???

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: wintercg/proposal-minimum-common-api#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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    core-teamissues which must be handled by Mocha's core teamtype: featureenhancement proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions