NextJS + Redux Testing

Written by James McDonald

July 18, 2018

Been trying to implement some tests for NextJS Redux App. You can get most of the way there by following the very good information here =>  http://redux.js.org/recipes/writing-tests

But if you drop .babelrc into your NextJS project as per above it stops the npm run dev working.

So you need to configure it for next-jest which you can do by following the examples here => https://github.com/zeit/next.js/tree/master/examples/with-jest

0 Comments

Submit a Comment

Your email address will not be published.

You May Also Like…

PHP Iterators

Just came across a Youtube talk "Iterators in PHP" by Jake Smith published in 2014 that steps through the many...

PHP array_map Multiple Arrays

array_map can take multiple arrays. I like how it starts mapping through them starting at the first element of each...