jest test arent passing
Arunjenson opened this issue · comments
Arun Jenson commented
Jest encountered an unexpected token
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.
By default "node_modules" folder is ignored by transformers.
SyntaxError: Cannot use import statement outside a module
Nico Greenarry commented
See some more discussion of this in #221