Replies: 2 comments 3 replies
-
|
I have the exact same error message but for @matart15 did you manage to solve this issue? |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
I'm not 100% sure but I added "ts-node": {
"compilerOptions": {
"module": "commonjs"
}
}And it seems to be working now. |
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.
-
I have following structure
When I run
jest -c backend/jest.config.unit.js backend/lambdas/Query/doors/index.test.tsI get this errorProblem
jest can solve
'@shared_code/auth'path. but inside'@shared_code/auth'it can't solveaws-sdkpath.code details
Details
// tsconfig.json
{ ... "paths": { "@prisma/*": [ "../database/node_modules/@prisma/*" ], "@shared_code/*": [ "shared_code/nodejs/node_modules/@shared_code/*" ], "@prisma_code/*": [ "./create_prisma_client/nodejs/node_modules/@prisma_code/*" ], "aws-sdk": [ "./external_libraries/nodejs/node_modules/aws-sdk" ], "aws-lambda": [ "./external_libraries/nodejs/node_modules/aws-lambda" ], }, ... }// jest.config.unit.js
// shared_code/nodejs/node_modules/@shared_code/auth.ts
// /lambdas/Query/doors/index.ts
// /lambdas/Query/doors/index.test.ts
Beta Was this translation helpful? Give feedback.
All reactions