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
I ran into a similar error when trying to import a package from node_modules whose index.js is an ES Module. After a lot of painful debugging, I was able to resolve it by moving my babel configuration out of package.json, into babel.config.js, as described here: jestjs/jest#6053 (comment) Combined with a custom transformIgnorePatterns (see here), this allowed babel-jest to correctly transform the file in node_modules.
I am new to Jest framework. I have followed the steps for installation from following blog:
https://www.valentinog.com/blog/ui-testing-jest-puppetteer/#UI_testing_with_Jest_and_Puppeteer_setting_up_the_project
when I run the test with command 'npm run test' I get following error:
● Test suite failed to run
My package.json looks like this:
{
"name": "getting-started-with-jest",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "jest"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"babel-core": "^6.26.3",
"babel-jest": "^24.9.0",
"babel-preset-env": "^1.7.0",
"faker": "^4.1.0",
"jest": "^24.9.0",
"puppeteer": "^2.0.0"
}
}
and .babelrc looks like below:
{
"presets": ["env"]
}
Can someone let me know what I am missing?
The text was updated successfully, but these errors were encountered: