Next.js: How do I make tests in next.js apps?

Created on 15 Mar 2017  ·  3Comments  ·  Source: vercel/next.js

Since next uses webpack under the hood, I can't integrate jest, ava, etc. because my files are written in babel syntax without explicity transpiling (webpack will transpile)
Has anyone done tests on an app using next?

I wonder know how it was done.

Most helpful comment

@renatorib we have a slack integration in a slack channel with 2200 people 😅 Feel free to join https://zeit.chat/

All 3 comments

In the examples folder there is one with Jest
https://github.com/zeit/next.js/tree/master/examples/with-jest

Lol, I searched as "with-test" and "test" in examples and found nothing.
Thanks. I'll take a look.

PS: fastest issue reply I ever seen

@renatorib we have a slack integration in a slack channel with 2200 people 😅 Feel free to join https://zeit.chat/

Was this page helpful?
0 / 5 - 0 ratings