-
Notifications
You must be signed in to change notification settings - Fork 157
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
Error on step2 test "SyntaxError: Cannot use import statement outside a module" #158
Comments
Hey thanks @mikhail-g, It seems I missed that out on step1/2/3. Your solution is neater than mine I'll make sure to update and propagate through the steps |
done, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps:
npm test --prefix consumer
Outcome:
Jest is panicking on
import
at axiosConsole output:
Workaround:
Exclude axios from
transformIgnorePatterns
to be transformed by Jest. Add the jest config field topackage.json
(or add jest.config file):The text was updated successfully, but these errors were encountered: