tests failing with SyntaxError: Unexpected token export

  • 0
  • Pump00:00

After updating a package “office-ui-fabric-react” from “5.124.0 to “6.128.0”, all my tests are failing with following error:

 FAIL  src***.test.tsx
  ● Test suite failed to run

node_modulesoffice-ui-fabric-reactlibCallout.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){export * from './components/Callout/index';
                                                                                         ^^^^^^

SyntaxError: Unexpected token export

  at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/ScriptTransformer.js:289:17)
Default Asked on February 7, 2020 in Programming.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.