You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
demonstrate changes to get esm graphql-js working with jest
strategy: use babel to transform our dependency
(A) globally: add @babel/preset-env as a devDependency to support 3 below
(B) in package using an esm dependency such as graphql canary:
1. switch our "ts-jest" preset to "ts-jest/presets/js-with-babel"
2. override the default transformIgnorePatterns with an exception for our package of interest
3. add a babel config file with the @babel/preset-env preset targetting node
-- The babel config files could be a base + override like the other configs in this repo, but it is pretty abbreviated, and this is just a demonstration, so I held off.
0 commit comments