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

Lack of .babelrc causes errors in testing #82

Open
jonlinnell opened this issue Apr 28, 2019 · 0 comments
Open

Lack of .babelrc causes errors in testing #82

jonlinnell opened this issue Apr 28, 2019 · 0 comments

Comments

@jonlinnell
Copy link

jonlinnell commented Apr 28, 2019

Loving this project – thanks for all the hard work!

I tried running yarn test out-of-the-box, and got the following error:
FAIL __tests__/app.test.jsx ● Test suite failed to run Jest encountered an unexpected token This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript. **By default, if Jest sees a Babel config, it will use that to transform your files**, ignoring "node_modules".

I'm quite new to Jest/Enzyme, but I'll (naively) submit a PR with a .babelrc, if it helps. 😄

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

1 participant