You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm run test
> [email protected] test /Users/randalmaia/Code/next.js/examples/with-jest
> NODE_ENV=test jest
FAIL __tests__/index.test.js
● Test suite failed to run
Plugin 0 specified in "/Users/randalmaia/Code/next.js/examples/with-jest/node_modules/next/babel.js" provided an invalid property of "default" (While processing preset: "/Users/randalmaia/Code/next.js/examples/with-jest/node_modules/next/babel.js")
at Plugin.init (node_modules/jest-config/node_modules/babel-core/lib/transformation/plugin.js:131:13)
at Array.map (<anonymous>)
at Array.map (<anonymous>)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 1.445s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test: `NODE_ENV=test jest`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/randalmaia/.npm/_logs/2018-09-12T11_20_40_999Z-debug.log
To Reproduce
Clone the next.js repository git clone [email protected]:zeit/next.js.git
Go to the example folder cd next.js/examples/with-jest
Install the npm npm i
Try run tests npm run test
Expected behavior
Should run the tests with success
Screenshots
System information
OS: OSX
Version of Next.js: latest
Additional context
I read this issue #4227 and tried the solutions without success
The text was updated successfully, but these errors were encountered:
Examples bug report
Example name
with-jest
Describe the bug
Test suite failed to run
To Reproduce
git clone [email protected]:zeit/next.js.git
cd next.js/examples/with-jest
npm i
npm run test
Expected behavior
Should run the tests with success
Screenshots
System information
Additional context
I read this issue #4227 and tried the solutions without success
The text was updated successfully, but these errors were encountered: