[Bug]: importing got
v13 package causes Jest to fail to parse the file
#4201
Labels
got
v13 package causes Jest to fail to parse the file
#4201
Version
29.1.1
Steps to reproduce
git clone https://github.com/dandv/got-jest && cd got-jest
npm install
node --loader ts-node/esm index.test.ts
// correct error,ReferenceError: test is not defined
, shows the ts-node setup worksnpm test
Expected behavior
I expect the test to pass.
Actual behavior
FAIL ./index.test.ts
● Test suite failed to run
Debug log
ts-jest.log
Additional context
If I comment out the
await got
call fromfoo()
and the console.log line that follows, the test passes, showing the ts-jest setup is correct.I tried this configuration with
babel-jest
but it still failed.Environment
The text was updated successfully, but these errors were encountered: