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
Hi. I’m using OHIF 3.7.0 and I’m trying to run some Jest tests, but I get the error:
/ohif/dev/viewer/platform/ui/src/index.js:7
import * as Types from './types';
^^^^^^
SyntaxError: Cannot use import statement outside a module
1 | import React, { useState } from "react";
> 2 | import { Select } from "@ohif/ui";
| ^
at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
at Object.<anonymous> (src/Form/form.tsx:2:1)
at Object.<anonymous> (__tests__/Form/form-test.tsx:4:1)
Describe the Bug
Hi. I’m using OHIF 3.7.0 and I’m trying to run some Jest tests, but I get the error:
My code:
The test:
Dependencies:
Steps to Reproduce
The current behavior
Receiving the error
SyntaxError: Cannot use import statement outside a module
The expected behavior
To run the test
OS
Fedora Linux 40 (Workstation Edition) 64 bits
Node version
v20.12.2
Browser
Firefox 126.0 64 bits
The text was updated successfully, but these errors were encountered: