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

Migrate tests to jest #23

Open
promaty opened this issue Nov 17, 2020 · 0 comments
Open

Migrate tests to jest #23

promaty opened this issue Nov 17, 2020 · 0 comments
Assignees

Comments

@promaty
Copy link
Contributor

promaty commented Nov 17, 2020

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

@promaty promaty self-assigned this Nov 17, 2020
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

No branches or pull requests

1 participant