You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can package and run offline just fine. But when I run my tests. I get syntax errors about modules.
Clearly this is incorrect. I've tried using import or require syntax. Changing extensions to mjs or setting "type": "module" in the project or service package.json. (Jest no longers finds the test if the extension is .mjs.)
The text was updated successfully, but these errors were encountered:
confusingbits
changed the title
Jest not using the same configuration as build
Jest not using the same configuration as build/run
Aug 17, 2022
I did. I don't really recall a firm solution. It was some combination of code import changes, file extension changes and package module config. And I think node version?
I'm getting strange error with a monorepo setup.
Folder structure follows sls recommendations.
I can package and run offline just fine. But when I run my tests. I get syntax errors about modules.
Clearly this is incorrect. I've tried using import or require syntax. Changing extensions to mjs or setting "type": "module" in the project or service package.json. (Jest no longers finds the test if the extension is .mjs.)
The text was updated successfully, but these errors were encountered: