@graphql-codegen/testing@5.0.3
Patch Changes
-
#10977
9f28176
Thanks @eddeee888! - Resolve the@typesdirectory from
@types/node's own location rather than from TypeScript's.validateTsandcompileTsderivedtypeRootsas
resolve(require.resolve('typescript'), '../../../@types/'), which only lands on
node_modules/@typesin a flat npm/yarn layout. Under pnpm's default isolated layout
require.resolvereturns the realpath inside the virtual store, so it pointed at a directory that
does not exist and no ambient Node typings were ever loaded — which is why
options.types ||= ['node']had to be disabled on TypeScript 6. Locating the directory from
@types/nodeitself is correct under every layout, and thetypesoption is restored alongside
it.@types/nodeis now a declared devDependency of this package rather than a phantom dependency of
the workspace root. This is an internal test-utility fix; no exported signature changes.