-
Notifications
You must be signed in to change notification settings - Fork 11
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 encountered an unexpected token after update #635
Comments
Hi @serverlesspolska, thanks for opening the issue. This is related to Jest trying to transform packages under You can configure Jest not to do so via https://github.com/erezrokah/aws-testing-library-examples/blob/8cbffeb58725baa168a1d10fa8568369146cf3dc/jest.config.js#L2 and https://github.com/erezrokah/aws-testing-library-examples/blob/8cbffeb58725baa168a1d10fa8568369146cf3dc/jest.config.js#L8 |
Thank you @erezrokah Unfortunately, that didn't help. I tried very similar setups already. I'm working on updating Serverless Framework template https://github.com/serverlesspolska/serverless-hexagonal-template My configuration is a little bit more complex as I have 3 config types, each for different test types: unit, integration, and e2e. I use The original config that works with v Based on your comment, I modified it as follows:
And I also installed @erezrokah could you please take a look at my project and suggest something? |
Hi we fixed it by doing the following
|
I have the same issue. Locally it works with @RaphaelManke 's fix but in GitHub actions, it somehow doesn't. I have no idea atm. |
Ok the last issue was because I missed the babel config due to a gitignore for JS files 🙄 It "works" now but I need to introduce babel only for this package and it gives me headaches for some other things like the MongoDB preset. Is there any way to get the |
Hi all and thanks for the workaround @RaphaelManke. I think my suggestion in #635 (comment) does something similar via a preset: This is a However I'll try to see if there's anything to be done on |
hey @erezrokah, I just updated to
As others said, I don't want to introduce babel just for the sake of this issue. Any suggestion on how to fix it? |
Any update around this? |
try to fix in PR #782 |
After updating from v
1.1.1
to most recent2.1.4
I got this error:I've tried many different solutions fount on the internet but nothing seems to work.
My
jest
version is28.1.1
andnode
is14
.The text was updated successfully, but these errors were encountered: