Replies: 1 comment
-
|
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I get this error from a lot of modules that have extra imports:
Cannot find module '../database/fagc/authentication.js' from 'src/utils/functions.ts'How should I map the TS files to JS? The file contents are below, so what should happen? When I remove the
.jsbit from the importWhen I remove the
.jsbit from the import, the error turns intoCannot find module '../database.js' from 'src/database/fagc/authentication.ts'. From that I assume that Jest understood the import. The issue however is that TS then doesn't understand the import. What are my options?My jest.config.cjs is this; should I add/remove something from it to fix it?
Beta Was this translation helpful? Give feedback.
All reactions