Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
170
rated 0 times [  173] [ 3]  / answers: 1 / hits: 10052  / 4 Years ago, sun, august 2, 2020, 12:00:00

I type:


npm test

and I get:


enter


It's interesting to note that the import statement works inside the BootScene.test.js file but it doesn't work in the imported file.


I focused on the import statement not working under JEst. So I thought maybe it has something to do with Ecma Script version jest uses. So I tried this solution but the error persists.


This is the repo/branch of this question.


When I type npm start. Everything flows swiftly and with no errors.


More From » jestjs

 Answers
3

I solved it by following this instructions.


enter


Thanks CherryDt.


[#3000] Thursday, July 30, 2020, 4 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
marisela

Total Points: 103
Total Questions: 105
Total Answers: 102

Location: Solomon Islands
Member since Fri, Oct 8, 2021
3 Years ago
marisela questions
;