InsightSoftwareConsortium / InsightSoftwareConsortium/create-itk-app
Couldn't get tests to work.
- Dominant language
- JavaScript
- Stars
- 12
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Expected behaviour:
Running `yarn test` runs all tests.
Actual behaviour
```
FAIL src/App.test.js
● Test suite failed to run
/mnt/C49EA2229EA20D4C/linux/source/js/itk-react-app/node_modules/vtk.js/Sources/Rendering/Core/Actor/index.js:1
({"Object.":function(module,exports,require,__dirname,__filename,global,jest){import { vec3, mat4 } from 'gl-matrix';
^^^^^^
SyntaxError: Cannot use import statement outside a module
3 | import './App.css';
4 |
> 5 | import vtkActor from 'vtk.js/Sources/Rendering/Core/Actor';
| ^
6 | import vtkSphereSource from 'vtk.js/Sources/Filters/Sources/SphereSource';
7 | import vtkMapper from 'vtk.js/Sources/Rendering/Core/Mapper';
8 | import vtkFullScreenRenderWindow from 'vtk.js/Sources/Rendering/Misc/FullScreenRenderWindow';
at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:537:17)
at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:579:25)
at Object. (src/App.js:5:1)
at Object. (src/App.test.js:3:1)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 30.337s
Ran all test suites.
Watch Usage
› Press f to run only failed tests.
› Press o to only run tests related to changed files.
› Press q to quit watch mode.
› Press p to filter by a filename regex pattern.
› Press t to filter by a test name regex pattern.
› Press Enter to trigger a test run.
Done in 58.01s.
```
Any help with fixing this issue would be highly appreciated. Even simple hints to point me in the right direction (so that I can fix it myself) would be really helpful.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.