Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

Migrate tests to jest #23

@promaty

Description

@promaty

Jest supports typescript out of the box without any extra configuration, while doing it in mocha is very awkward:
https://github.com/aragon/protocol-backend/blob/f38fcccd52cb74b3a39ffa0b21c4de0ca9524cef/packages/server/test/helpers/babel-ts.js

Also it allows creating more powerful mocks with property matchers, which I don't think can be done in mocha+chai:
https://github.com/aragonone/ipfs-pinner/blob/development/packages/server/test/integration/file-creation.test.ts#L24

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions