Skip to content

Lack of .babelrc causes errors in testing #82

@jonlinnell

Description

@jonlinnell

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. 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions