Open korbav opened 1 year ago
From my investigation,it seems that the problem is you somehow didn't include the tsconfig.json while publishing the package to npm
Hi, thanks for reporting the issue.
Which version of Jest are you using? Tests in latest CRA based app seem to work, but I found another issue with missing file extensions. It is now fixed in v1.0.2.
Hi @ArnoSaine ,
Unfortunately adding the .js
to the imports is not the reason for the pre-quoted exception to be raised, I just update the package and it's the exact same.
I'm using jest 29.5.0 in conjunction with ts-jest
Note: I was able to make the package work with some modifications that you can find here :
https://github.com/korbav/suspense-overlay
In particular, I had to change "type": "module"
to "type": "commonjs"
in package.json
Example:
Then while testing with jest:
This simple test case will trigger the following error: