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

Jest find error. #107

Closed
shinriyo opened this issue Aug 23, 2018 · 2 comments
Closed

Jest find error. #107

shinriyo opened this issue Aug 23, 2018 · 2 comments

Comments

@shinriyo
Copy link

I run Jest
but error

  ● Test suite failed to run

    /Users/me/path/node_modules/decimal.js/decimal.mjs:4789
    export var Decimal = clone(DEFAULTS);
    ^^^^^^

    SyntaxError: Unexpected token export
@MikeMcl
Copy link
Owner

MikeMcl commented Aug 23, 2018

This is a matter of configuring Jest, and not an issue with this library. This and/or this may help.

@shinriyo
Copy link
Author

@MikeMcl
Thank you for replying.

exactly! I use create-react-app command
I use TypeScript. so I guess
node_modules/react-scripts-ts/scripts/utils/createJestConfig.js of it had bug.
I just move 'mjs', to bottom of moduleFileExtensions.
I can't believe why 'mjs' order is important.

@MikeMcl MikeMcl closed this as completed Sep 25, 2018
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