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

Related issues

timneutkens picture timneutkens  路  3Comments

olifante picture olifante  路  3Comments

kenji4569 picture kenji4569  路  3Comments

ghost picture ghost  路  3Comments

swrdfish picture swrdfish  路  3Comments