Skip to content

Migrate from mocha to Jest#1712

Draft
luin wants to merge 1 commit into
mainfrom
zh-mocha-jest
Draft

Migrate from mocha to Jest#1712
luin wants to merge 1 commit into
mainfrom
zh-mocha-jest

Conversation

@luin

@luin luin commented Jan 25, 2023

Copy link
Copy Markdown
Collaborator

Jest seems to be more popular than mocha and the API is nicer to work with.

@silverwind

silverwind commented Feb 10, 2023

Copy link
Copy Markdown
Contributor

Jest has many issues related to ESM. I can recommend vitest as a Jest replacement, its API is almost completely compatible with Jest, see migration docs. I guess the only downside to vitest is that it brings the vite dependency which is heavyweight.

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