Skip to content

Testing with Jest does not work (es6 modules not transpiling for node) #133

@biels

Description

@biels

Running npm test with some .test.js fiels under /src does not work out of the box.
Well, in fact it does until you try to import a file using es6 modules. It complains about "SyntaxError: Unexpected token import". I think babel-jest has to be configured properly.
Tested it under node v9.3.0.

As additional information that might or might not be useful: Maybe it is not finding the provided configuration files (jest.config.js and jest.transform.js) for some reason, or it is ignoring them because of some webpack configuration?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions