DEV Community

Nani Moka
Nani Moka

Posted on

React: No Test Coverage BABEL Type Error

Hi Experts , I am facing below issues when I run the test coverage, I have tried all options to upgrade the Plugins no luck, for all the test suites I am getting the same error , I have verified all tests are good. any help is much appreciated

TypeError: [BABEL] /runner/_work/--- /node_modules/@babel/runtime/helpers/interopRequireDefault.js: _interopRequireDefault is not a function (While processing: "/runner/_work/---- /node_modules/babel-preset-react-app/index.js")

  16782 |       this.isDebugEnabled && m.debug(`SensorManager: loading ${p} requested by ${z ? z.id : "<undefined>"}`);
  16783 |       const E = c.PatchedFnDescriptor.getOrigFn(K.moduleLoadSubstitute);
> 16784 |       return Reflect.apply(E, G, [p, z, u]);
        |                      ^
  16785 |     }
  16786 |     patchImportedModule(G, p, z) {
  16787 |       this.isDebugEnabled && m.debug(`SensorManager: patchImportedModule ${G}"}`);
Enter fullscreen mode Exit fullscreen mode

Top comments (0)