-
Notifications
You must be signed in to change notification settings - Fork 940
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
Jest and ES6 keyword import #1346
Comments
@mrnagydavid Thanks for reporting this. If you want to remove the tester, you can edit the bit.json file in the root of your workspace and remove the tester entry. In the future we will add an option to run the tester on the source files in case your tester run's build himself. I'm closing this, since this is the expected behaviour. |
Adding compiler does not help me, and the one strange thing that I faced was that tests run successfully in local with the command Actual behavior
Steps to reproduce
Specifications
|
Hi, I'm re-open this issue. |
@GiladShoham Yeah, sure, here it is https://bit.dev/artemkorchunovv/test1/ui/add-button/~console |
I've come across this issue too. This is because you might have compiled your code into ES modules and Jest just doesn't have ES6 support. Take a look over here: jestjs/jest#4842 |
resolved in v15 We'll start rolling out v15 of Bit this week, please reach out to me privately on the public slack community for a sneak peek and getting early access to it. |
Expected Behavior
Jest runs the test without having to compile the (test) code to ES5.
Actual Behavior
Jest does not run the test because it fails on the
import
keyword.Steps to Reproduce the Problem
import
instead ofrequire
bit add <component>
runbit test
orbit tag
Specifications
Or at least how can I remove the tester from the project? I added it with
bit import
, butbit remove
does not seem to work.The text was updated successfully, but these errors were encountered: