Describe the bug
Struggling to get correct transformation of ES to work on unit testings. Tried adding babel to deal with transformation but still not able to get it right for some reason.
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { jsx as c, jsxs as lt, Fragment as Mt } from "react/jsx-runtime";
SyntaxError: Cannot use import statement outside a module
Describe the bug Struggling to get correct transformation of ES to work on unit testings. Tried adding
babel
to deal with transformation but still not able to get it right for some reason.Tried:
babel.config.js
jest.config.js
Any help would be greatly appreciated!