Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with Jest 28+ #634

Closed
comp615 opened this issue Oct 16, 2022 · 0 comments · May be fixed by #635
Closed

Incompatible with Jest 28+ #634

comp615 opened this issue Oct 16, 2022 · 0 comments · May be fixed by #635

Comments

@comp615
Copy link
Contributor

comp615 commented Oct 16, 2022

When using a project configured to use the jest transformer (i.e.):

transform: {
    '\\.(gql|graphql)$': [
      'graphql-let/jestTransformer'
    ],
}

Updating past Jest 28 will throw the following error on a line that imports a graphql file:

Invalid return value:
      `process()` or/and `processAsync()` method of code transformer found at 
      "/root/repo/node_modules/jest-transform-graphql/index.js" 
      should return an object or a Promise resolving to an object. The object 
      must have `code` property with a string of processed code.
      This error may be caused by a breaking change in Jest 28:
      https://jestjs.io/docs/upgrading-to-jest28#transformer
      Code Transformation Documentation:
      https://jestjs.io/docs/code-transformation
@comp615 comp615 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant