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

Run all tests with mocha after all #7076

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

cknitt
Copy link
Member

@cknitt cknitt commented Oct 4, 2024

In #6956 and #6978, I started porting tests from mocha to the built-in node test runner.

However, having two different test runners complicates things, and the existing coverage reporting (npm run coverage) also works for mocha only.

Actually, the basic API is the same for mocha and the built-in node test runner anyway, and my main concern was with using the OCaml-like API in mt.res built on top of mocha instead of using the basic mocha API directly like you normally would in JS.

So I am now running all tests with mocha again, but keeping the refactorings I already made for the Belt tests. I think all tests should eventually be refactored to this simpler style, but there is no rush here.

@cknitt cknitt merged commit 06c7a26 into rescript-lang:master Oct 4, 2024
20 checks passed
@cknitt cknitt deleted the tests-mocha branch October 4, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants