Adding a tsconfig file breaks ts-jest? #3098
Unanswered
commure-stabai
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have some code generated by Swagger Codegen, and I'm trying to publish it as an npm package with both JavaScript and TypeScript support. I had all of my ts-jest tests passing before I had created a tsconfig.json file, but when I added one, I started getting errors.
The big error is actually pointing to the file under test, saying
TypeError: f is not a function:The definition of the
FetchAPIinterface looks right, andtscis perfectly happy:I had to change some imports when adding the tsconfig, so I thought that could be it, but none of the changes have made any difference on this error.
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions