Skip to content

Migrate from Mocha to Jest #2550

Closed
Closed
@jsjoeio

Description

@jsjoeio

As discussed with @code-asher and @nhooyr, we've decided to migrate from Mocha to Jest as our testing framework of choice for the following reasons:

  • Jest has a larger community, more active and more popular in the JS ecosystem
  • more members of the team are familiar with it
  • built-in support for code coverage

This issue is for transparency and to track the migration.

TODOS

  • Add jest and make sure it works (ts-jest Is one of the recommended approaches, easy setup)
  • Use codemods to migrate mocha tests over (helpful resource)
  • Remove mocha fully
  • Add code coverage (including shield to README)

Metadata

Metadata

Assignees

Labels

enhancementSome improvement that isn't a feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions