-
Notifications
You must be signed in to change notification settings - Fork 162
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
Unexpected token 'export' #10766
Comments
Hi @ravivit9, I see that your app uses version 12 of Angular. Please go ahead and update |
@hanastasov I'm using Angular 13.1.3 with igniteui-angular 13.0.11. I am using a standard Nx repo lib. I am trying to unit test a simple component with only an igx-input-group and igxInput inside. I get this error: When I open up that file, the line it highlights is this one dealing with icons: Here's my package.json for reference:
|
@mikerentmeister I couldn't reproduce your issue with the same version. |
@mikerentmeister If we can't reproduce that. We are going to close this issue in one week time. |
My team was able to repro it today right before the end of our work day, using your attached sample. We will get it posted here on Monday |
Here is the reproduction of the error mentioned above: You should just be able to install the dependencies, then run npm start Edit: |
@mikerentmeister I suspect that the problem is comming from the jest itself. With that in mind I don't think we have something to do here. |
@Aleksandyr Thank you for your response. Based on this comment I modified my transformIgnorePatterns to just 1 item in the array, and tests started to run for us. I think we can probably close this issue. If anyone comes here in the future, this is our current pattern in our jest.config.js:
|
Thanks for sharing the solution, @mikerentmeister! |
Description
After installing latest version of the package I started getting the below error during ng test.
SyntaxError: Unexpected token 'export'
Steps to reproduce
Result
What is the actual result after following the steps to reproduce?
SyntaxError: Unexpected token 'export'
Test Suites: 6 failed, 1 skipped, 14 passed, 20 of 21 total
Tests: 1 failed, 1 skipped, 14 passed, 16 total
Expected result
What is the expected result after following the steps to reproduce?
All tests must passed
Attachments
Attach a sample if available, and screenshots, if applicable.
The text was updated successfully, but these errors were encountered: