-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cannot execute tests when babel does not transpile 'let' keyword #5389
Comments
I have traced down issue to the https://github.com/babel/ember-cli-babel/blob/cb4c2e763eb2fdb96654957ee2578912f88a8265/index.js#L93 where useStrict is blacklisted from babel with comment |
What about use |
@nathanhammond i think the use-strict trick you added needs to also prepend to the test file. |
Ya, agreed. Possibly also to test-support.js. |
Waiting on a fix for [this issue](ember-cli/ember-cli#5389) to land. When it does, this can be removed (assuming that tests run as expected after this line is removed.
Turn on strict mode for tests. Fixes #5389.
Happening on 2.3.0-beta.1 in chromium 47
I am getting following exception when executing tests in case babel transpilation of 'let' keyword is disabled.
Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
My
ember-cli-build.js
config for babelGenerally problem is that each non jshint module included in compiled tests.js is missing 'use strict' statement
The text was updated successfully, but these errors were encountered: