jasonkuhrt / graphql-request

Minimal GraphQL client
MIT License
5.74k stars 307 forks source link

Broken v7 types in jest #941

Closed jakeleventhal closed 6 days ago

jakeleventhal commented 1 week ago

@tofsjonas if you use "moduleResolution": "bundler" in .tsconfig.json you won't have to add file extensions https://www.typescriptlang.org/tsconfig/#moduleResolution

I've gotten that far updating my project, now trying to get Jest working with ESM.. So I agree this brings a challenge for some established projects.

Originally posted by @mrbfrank in https://github.com/jasonkuhrt/graphql-request/issues/880#issuecomment-2130210582

After setting bundler module resolution, still getting issues when running npx jest