# @giraphql/test-utils

## 2.3.0

### Minor Changes

- 963ff0a: Add `rebuildResolverPaths`, which hands a schema's resolvers their info as graphql-jit builds it, for testing code that reads `info.path`.

  Add `infoAt`, which builds the info of another field in the same execution, with the path its executor would give it.

## 2.2.1

### Patch Changes

- 76e06e7: Rebuild with TypeScript 7. Source files now use explicit `.js` import extensions (enforced by
  lint) instead of adding them during the build, and declaration files are emitted by TypeScript
  7's compiler. Published output is functionally unchanged.

## 2.2.0

### Minor Changes

- 044520d: Support graphql 17 alongside graphql 16. Peer dependency ranges now accept `^16.10.0 || ^17.0.0`,
  and the library source compiles against both majors. graphql 17 changed a handful of types that
  Pothos touches: `GraphQLNonNull<T>` is now constrained to nullable types, `GraphQLResolveInfo['variableValues']`
  became `{ sources, coerced }` (consumed by the complexity plugin via `getArgumentValues`), and
  `GraphQLArgument` is no longer assignable to `GraphQLField`. Each is handled in a version-agnostic
  way, with a runtime version branch only where the `variableValues` shape genuinely differs.

  graphql 17 also moved incremental delivery (`@defer`/`@stream`) out of the stable `execute`, which
  now throws on any schema that declares those directives. `@pothos/test-utils` gains a version-aware
  `execute` helper that routes through `experimentalExecuteIncrementally` on 17 and collapses the
  incremental payloads back into a single result, so defer/stream-aware query planning in the prisma
  and drizzle plugins is validated identically on both majors.

  `scalarType` now accepts graphql 17's modern coercion hooks — `coerceOutputValue`, `coerceInputValue`,
  `coerceInputLiteral`, and `valueToLiteral` — alongside the existing `serialize`/`parseValue`/`parseLiteral`.
  These are consulted only on graphql 17+ (graphql 16 continues to use `serialize`/`parseValue`/`parseLiteral`);
  per graphql's constructor, `coerceInputLiteral` must be paired with `coerceInputValue`. `serialize` is
  now optional when `coerceOutputValue` is provided instead (one of the two is required for output).

## 2.1.3

### Patch Changes

- 3403c66: update dependencies

## 2.1.2

### Patch Changes

- 1622740: update dependencies

## 2.1.1

### Patch Changes

- cd7f309: Update dependencies

## 2.1.0

### Minor Changes

- 27af377: replace eslint and prettier with biome

## 2.0.1

### Patch Changes

- 9bd203e: Fix graphql peer dependency version to match documented minumum version

## 2.0.0

### Major Changes

- 29841a8: Release Pothos v4 🎉 see https://pothos-graphql.dev/docs/migrations/v4 for more details

### Patch Changes

- c1e6dcb: update readmes

## 2.0.0-next.1

### Patch Changes

- update readmes

## 2.0.0-next.0

### Major Changes

- 29841a8: Release Pothos v4 🎉 see https://pothos-graphql.dev/docs/migrations/v4 for more details

## 1.4.9

### Patch Changes

- 1ecea46: revert accidental pinning of graphql peer dependency

## 1.4.8

### Patch Changes

- 4c6bc638: Add provinance to npm releases

## 1.4.7

### Patch Changes

- d4d41796: Update dev dependencies

## 1.4.6

### Patch Changes

- 6f00194c: Fix an issue with esm import transform

## 1.4.5

### Patch Changes

- b12f9122: Fix issue with esm build script

## 1.4.4

### Patch Changes

- d350f842: update dev deps

## 1.4.3

### Patch Changes

- 9fa27cf7: Transform dynamic type imports in d.ts files

## 1.4.2

### Patch Changes

- 3a82d645: Apply esm transform to esm d.ts definitions

## 1.4.1

### Patch Changes

- 218fc68b: Fix script for copying ems d.ts definitions

## 1.4.1

### Patch Changes

- 67531f1e: Create separate typescript definitions for esm files

## 1.4.0

### Minor Changes

- 11929311: Update type definitions to work with module: "nodeNext"

## 1.3.1

### Patch Changes

- aa18acb7: update dev dependencies

## 1.3.0

### Minor Changes

- 3a7ff291: Refactor internal imports to remove import cycles

### Patch Changes

- 3a7ff291: Update dev dependencies

## 1.2.3

### Patch Changes

- c8f75aa1: Update dev dependencies

## 1.2.2

### Patch Changes

- 4e5756ca: Update dev dependencies

## 1.2.1

### Patch Changes

- 4b24982f: Update dev dependencies

## 1.2.0

### Minor Changes

- ecb2714c: Add types entry to export map in package.json and update dev dependencies

  This should fix compatibility with typescripts new `"moduleResolution": "node12"`

## 1.1.1

### Patch Changes

- 971f1aad: Update dev dependencies

## 1.1.0

### Minor Changes

- 6279235f: Update build process to use swc and move type definitions to dts directory

### Patch Changes

- 21a2454e: update dev dependencies

## 1.0.2

### Patch Changes

- 03aecf76: update .npmignore

## 1.0.1

### Patch Changes

- ab4a9ae4: Fix some type compatibility issues when skipLibCheck is false

## 1.0.0

### Major Changes

- 4caad5e4: Rename GiraphQL to Pothos

## 0.6.0

### Minor Changes

- 9307635a: Migrate build process to use turborepo

## 0.5.1

### Patch Changes

- c6aa732: graphql@15 type compatibility fix

## 0.5.0

### Minor Changes

- 6d2a6d9: Update to support typescript 4.5. typescript@>4.5.2 is now required for code generation
  in the prisma plugin

## 0.4.1

### Patch Changes

- c85dc33: Add types entry in package.json

## 0.4.0

### Minor Changes

- aeef5e5: Update dependencies

## 0.3.0

### Minor Changes

- 9107f29: Update dependencies (includes graphql 16)

## 0.2.0

### Minor Changes

- 17db3bd: Make type refs extendable by plugins

## 0.1.3

### Patch Changes

- 045e4ec: Fix a bug in argMapper that caused mappings to be omitted if the only mappings were for
  fields for input types without nested mappings

## 0.1.2

### Patch Changes

- c976bfe: Update dependencies

## 0.1.1

### Patch Changes

- 4150f92: Fixed esm transformer for path-imports from dependencies
