We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a module contains an ES2015 import statement I get a SyntaxError:
SyntaxError
ava test.js /home/booker/Code/ava-test/index.js:1 (function (exports, require, module, __filename, __dirname) { import _ from "lodash"; ^^^^^^ SyntaxError: Unexpected reserved word
nvm use 5.0.0 npm install -g ava npm install ava npm install lodash
index.js:
index.js
import _ from "lodash";
test.js
import test from 'ava'; import sut from "./";
ava
The text was updated successfully, but these errors were encountered:
AVA doesn't transpile your code, only your test file.
You probably want #111.
Sorry, something went wrong.
Thanks, @sindresorhus. I'll look into that now.
No branches or pull requests
Problem
When a module contains an ES2015 import statement I get a
SyntaxError
:How to reproduce
index.js
:test.js
The text was updated successfully, but these errors were encountered: