Closed
Description
I have spent about 6 hours following this tutorial. I finally decided to create a new React 16 app from scratch to make sure there wasn't some sort of configuration problem but I'm going to have to say there is something missing. Either You cannot test a React App with Jasmine or this Tutorial is not correct:
'https://jasmine.github.io/tutorials/react_with_node'
When running the test you get:
Error: While loading C:/dev/basic-react/spec/app.spec.mjs: SyntaxError: Unexpected token '<'
at fixupImportException (C:\dev\basic-react\node_modules\jasmine\lib\loader.js:141:12)
at C:\dev\basic-react\node_modules\jasmine\lib\loader.js:39:37
at async Jasmine._loadFiles (C:\dev\basic-react\node_modules\jasmine\lib\jasmine.js:232:7)
at async Jasmine.loadSpecs (C:\dev\basic-react\node_modules\jasmine\lib\jasmine.js:223:5)
at async Jasmine.execute (C:\dev\basic-react\node_modules\jasmine\lib\jasmine.js:495:5)
at async runJasmine (C:\dev\basic-react\node_modules\jasmine\lib\command.js:160:5)
at async Command.run (C:\dev\basic-react\node_modules\jasmine\lib\command.js:59:9)
I created this very basic repo to try this out after I couldn't get it working on my project:
https://github.com/kevinlbatchelor/ReactJasmineTest
Any help would be much appreciated. In fact I'll help if someone can point me in the right direction.
Metadata
Metadata
Assignees
Labels
No labels