Download Latest Version October 05, 2026 source code.zip (3.1 MB) Google Add to Preferred Sources
Home / release-1790254258844
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-09-24 1.9 kB
September 24, 2026 source code.tar.gz 2026-09-24 2.6 MB
September 24, 2026 source code.zip 2026-09-24 3.1 MB
Totals: 3 Items   5.7 MB 0

@graphql-codegen/testing@5.0.4

Patch Changes

  • #10979 2052509 Thanks @eddeee888! - dependencies updates:

  • #10979 2052509 Thanks @eddeee888! - Anchor validateTs / compileTs module resolution at the directory of the test being run.

    The file these helpers type-check exists only in memory, but TypeScript still needs a real directory to anchor Node module resolution to. The compiler host reported '' as the current directory, so nothing resolved — and every resulting diagnostic was swallowed by the blanket Cannot find module filter, leaving generics to silently degrade to never with only a confusing downstream overload error to show for it.

    process.cwd() is not a usable anchor either: it is the repo root, and under pnpm's isolated layout a package's dependencies live in that package's own node_modules. The directory of the running test file is, so it is taken from expect.getState().testPath; calling these helpers outside a vitest test now throws instead of silently resolving from the wrong place.

    vitest is now declared as a peer dependency rather than relied on as a phantom one — src/index.ts already imported it, and validateTs now does too.

    This is an internal test-utility fix; no exported signature changes.

Source: README.md, updated 2026-09-24