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
-
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
FetchAPI
interface looks right, andtsc
is 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