Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests failing on updating office-ui-fabric-react package #762

Closed
1 of 3 tasks
lipalath-ms opened this issue Jan 19, 2019 · 2 comments
Closed
1 of 3 tasks

Tests failing on updating office-ui-fabric-react package #762

lipalath-ms opened this issue Jan 19, 2019 · 2 comments

Comments

@lipalath-ms
Copy link

Category

  • Question
  • Bug
  • Enhancement

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 ***.test.tsx
● Test suite failed to run

node_modules\office-ui-fabric-react\lib\components\Button\index.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){export * from './BaseButton';
                                                                                         ^^^^^^

SyntaxError: Unexpected token export

  at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/ScriptTransformer.js:289:17)
  at Object.<anonymous> (**.tsx:17:67)
  at Object.<anonymous> (**.test.tsx:7:29)

I'm using framework Jest, enzyme, sinon. Please let me know why.

@lipalath-ms
Copy link
Author

@VelinGeorgiev Could you please let me know if you have any idea to resolve this?

@VelinGeorgiev
Copy link
Contributor

Hey @xyz92 , I am not using Fabric UI in my solutions and I do not have a quick solution for you here.

You might have to ignore some Fabric UI stuff to make it work. Have a look here: jestjs/jest#2550

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants