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

Add option to use jest instead of ava #140

Closed
kristianmandrup opened this issue Nov 22, 2018 · 2 comments
Closed

Add option to use jest instead of ava #140

kristianmandrup opened this issue Nov 22, 2018 · 2 comments

Comments

@kristianmandrup
Copy link

  • I'm submitting a ...
    [ ] bug report
    [ x ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

Tried to use this generator and switch from ava to jest but completely stuck as per this issue.

What gives?

@bitjson
Copy link
Owner

bitjson commented Nov 27, 2018

Hey @kristianmandrup, thanks for opening an issue!

I'd love to take a PR to add Jest as an option. I don't really use it outside of React projects myself, so I've not bothered adding it here.

If you haven't tried AVA, I really recommend it – the API is imported like a normal package, rather than being injected into the global context. I find it usually makes tests cleaner and easier for new contributors to jump right in.

Other than that, you might like this starter project which is also structured in more the "Jest way": https://github.com/alexjoverm/typescript-library-starter

@kristianmandrup
Copy link
Author

Hey, @bitjson I came from ava and switched to jest some time ago when I got back into React.
Seems to be the standard in the react community. Never looked back. Jest has huge JS community support, with fancy editor plugins and more. I'll look at the lib you recommended as an alternative.
Cheers.

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

2 participants