Closed yussinsharp closed 7 years ago
And just to be clear ahead of time, I have already re-installed node_modules and ran jest with no-cache.
Did you try without "modules": false
?
Yes. Same error.
I don't thnk the stage-2 preset covers imports you should use the es2015
preset too.
This is not a help forum. Try running Jest once with --no-cache
and make sure to upgrade to the latest version of Jest.
@curioussavage Thanks!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
The babel-jest plugin is not being recognized and so running jest fails with
If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can
yarn install
andyarn test
.Running
npm test
withpackage.json
.babelrc
Not pasting the source code as I feel it's irrelevant. It's complaining about the import statement at the top of a certain test file. Hope this information is enough :)
What is the expected behavior?
I am expecting it to properly load my babel config so I can test all of my ES6 code. I am suspecting that it is because of my babel-core packages being installed as dependencies and not devDependencies but that doesn't seem right... (we have that so we can manage builds with postinstalls on NODE_ENV=production environments like Heroku)