with-jest example doesnt work
See original GitHub issuewhen i run test from npm scripts i have error
C:\with-jest-app\jest.setup.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import { configure } from 'enzyme';
^
SyntaxError: Unexpected token {
at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:316:17)
Tech | Version |
---|---|
next | 5.1.0 |
node | 10.0.0 |
Issue Analytics
- State:
- Created 5 years ago
- Comments:28 (8 by maintainers)
Top Results From Across the Web
React Jest example doesn't work - Stack Overflow
Trying to run the example of Jest testing React code (from https://github.com/facebook/jest/tree/master/examples/react ), I get the ...
Read more >with-jest-app example doesn't work · Issue #37082 - GitHub
After setting up the with-jest example from the documentation, yarn test consistently fails. Expected Behavior. Whether using npx or directly ...
Read more >Troubleshooting - Jest
Troubleshooting. Uh oh, something went wrong? Use this guide to resolve issues with Jest. Tests are Failing and You Don't Know Why.
Read more >Testing Asynchronous Code - Jest
It's common in JavaScript for code to run asynchronously. When you have code that runs asynchronously, Jest needs to know when the code...
Read more >Configuring Jest
Configuring Jest. The Jest philosophy is to work great by default, but sometimes you just need more configuration power.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello there! I added this following
.babelrc
and installed
yarn add --dev babel-jest babel-preset-env babel-preset-react
Worked for me.
and now seeing this error