@graphql-codegen/testing
Changelog for @graphql-codegen/testing: every release with its changes and the pull requests behind them.
5.0.6
Patch Changes
-
#10985
d8aa07fThanks @eddeee888! - Build withstrict: true, which changes these emitted type declarations:@graphql-codegen/cli:mkdirpreturnsPromise<string | undefined>, and therequire(-r) CLI option’sdefaultis typednever[]instead ofany[].@graphql-codegen/visitor-plugin-common:BaseResolversVisitorandBaseTypesVisitorSchemaDefinition()/SchemaExtension()returnnullinstead ofany.@graphql-codegen/visitor-plugin-common:BaseSelectionSetProcessor.typeCacheis keyed byLocation | undefined.@graphql-codegen/visitor-plugin-common:SelectionSetToObject.buildSelectionSetreturnstypeInfoas{ name: string; type: string } | null.@graphql-codegen/visitor-plugin-common:getPossibleTypesacceptsnullas the type, which graphql 15’sschema.getType()can return.@graphql-codegen/visitor-plugin-common:removeDescriptionreturns nodes withdescription: undefinedinstead ofany.@graphql-codegen/typescript:TsIntrospectionVisitor’s constructor takespluginConfigasTypeScriptPluginConfig | undefined,DirectiveDefinition()returnsnullandObjectTypeDefinition()returnsstring | null.@graphql-codegen/client-preset: the babel preset acceptsoptionsasClientBabelPresetOptions | null | undefined.@graphql-codegen/testing:mockGraphQLServerreturnsnock.Scope | null.@graphql-codegen/graphql-modules-preset: a schema withoutextensions(graphql 15) throws the “requires to use GraphQL SDL” error instead of aTypeError.
Generated output is unchanged.
5.0.5
Patch Changes
-
#10992
024fa34Thanks @eddeee888! - MakevalidateTs/compileTstype-check understrict: true: fall back to the compiler host’s script target when the passed options have notarget, and only compute a diagnostic’s line/column when it has astartposition. Adds@types/common-tagsas a devDependency. -
Updated dependencies [
1d1153b]:- @graphql-codegen/plugin-helpers@7.4.0
5.0.4
Patch Changes
-
#10979
2052509Thanks @eddeee888! - dependencies updates:- Added dependency
vitest@^4.0.0↗︎ (topeerDependencies)
- Added dependency
-
#10979
2052509Thanks @eddeee888! - AnchorvalidateTs/compileTsmodule 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 blanketCannot find modulefilter, leaving generics to silently degrade toneverwith 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 ownnode_modules. The directory of the running test file is, so it is taken fromexpect.getState().testPath; calling these helpers outside a vitest test now throws instead of silently resolving from the wrong place.vitestis now declared as a peer dependency rather than relied on as a phantom one —src/index.tsalready imported it, andvalidateTsnow does too.This is an internal test-utility fix; no exported signature changes.
5.0.3
Patch Changes
-
#10977
9f28176Thanks @eddeee888! - Resolve the@typesdirectory from@types/node’s own location rather than from TypeScript’s.validateTsandcompileTsderivedtypeRootsasresolve(require.resolve('typescript'), '../../../@types/'), which only lands onnode_modules/@typesin a flat npm/yarn layout. Under pnpm’s default isolated layoutrequire.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 whyoptions.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.
5.0.2
Patch Changes
-
#10951
464b531Thanks @eddeee888! - dependencies updates:- Added dependency
graphql-yoga@^5.21.0↗︎ (todependencies) - Removed dependency
graphql-helix@1.13.0↗︎ (fromdependencies)
- Added dependency
-
#10951
464b531Thanks @eddeee888! - Replace unmaintainedgraphql-helixdependency withgraphql-yogain the internalmockGraphQLServertest utility.graphql-helixhas had no releases in years;graphql-yogais actively maintained and already used elsewhere in this monorepo. This is an internal implementation detail — themockGraphQLServerfunction signature is unchanged.
5.0.1
Patch Changes
- #10849
55a4742Thanks @eddeee888! - dependencies updates:- Updated dependency
@graphql-codegen/plugin-helpers@workspace:^↗︎ (from^7.0.0, independencies)
- Updated dependency
5.0.0
Major Changes
- #10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: Drop Node 20 support
Patch Changes
4.0.5
Patch Changes
- #10103
9a66574Thanks @renovate! - dependencies updates:- Updated dependency
tslib@^2.8.0↗︎ (from~2.6.0, independencies)
- Updated dependency
- Updated dependencies
[
9a66574,e65d303]:- @graphql-codegen/plugin-helpers@6.3.0
4.0.4
Patch Changes
- #10622
369b2c1Thanks @eddeee888! - Force publish to fix failed publish 4.0.2
4.0.2
Patch Changes
- #10614
4780d57Thanks @eddeee888! - Fix usage issue due to ESM/CJS incompatibility
4.0.1
Patch Changes
- #10313
ace5c41Thanks @renovate! - dependencies updates:- Updated dependency
jest-diff@^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0 || ^29.0.0 || ^30.0.0↗︎ (from^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0 || ^29.0.0, inpeerDependencies)
- Updated dependency
4.0.0
Major Changes
-
#10218
140298aThanks @eddeee888! - Bump depdendencies major versions:- nock v14
-
#10218
140298aThanks @eddeee888! - Drop Node 18 support
Patch Changes
- Updated dependencies
[
140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a]:- @graphql-codegen/plugin-helpers@6.0.0
3.0.4
Patch Changes
- #10070
5fb302cThanks @renovate! - dependencies updates:- Updated dependency
nock@13.5.4↗︎ (from13.5.3, independencies)
- Updated dependency
3.0.3
Patch Changes
-
#9627
422e2a7Thanks @renovate! - dependencies updates:- Updated dependency
nock@13.3.6↗︎ (from13.3.1, independencies)
- Updated dependency
-
#9851
217ed56Thanks @renovate! - dependencies updates:- Updated dependency
nock@13.5.3↗︎ (from13.3.6, independencies)
- Updated dependency
3.0.2
Patch Changes
-
Updated dependencies [
4e69568]:- @graphql-codegen/plugin-helpers@5.0.3
3.0.1
Patch Changes
-
#9811
d8364e045Thanks @saihaj! - dependencies updates:- Updated dependency
tslib@~2.6.0↗︎ (from~2.5.0, independencies)
- Updated dependency
-
#9811
d8364e045Thanks @saihaj! - dependencies updates:- Updated dependency
jest-diff@^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0 || ^29.0.0↗︎ (from^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0, inpeerDependencies)
- Updated dependency
-
Updated dependencies [
d8364e045]:- @graphql-codegen/plugin-helpers@5.0.2
3.0.0
Major Changes
Patch Changes
- #9407
bec804225Thanks @renovate! - dependencies updates:- Updated dependency
nock@13.3.1↗︎ (from13.3.0, independencies)
- Updated dependency
- Updated dependencies
[
4d9ea1a5a,f46803a8c,63827fabe,bb66c2a31]:- @graphql-codegen/plugin-helpers@5.0.0
2.0.2
Patch Changes
-
#9228
a5ec5af36Thanks @eddeee888! - Add complex test cases for resolvers tests -
Updated dependencies [
b7dacb21f,f104619ac]:- @graphql-codegen/plugin-helpers@4.2.0
2.0.1
Patch Changes
- #8879
8206b268dThanks @renovate! - dependencies updates:- Updated dependency
tslib@~2.5.0↗︎ (from~2.4.0, independencies)
- Updated dependency
- Updated dependencies
[
8206b268d,a118c307a,a3309e63e]:- @graphql-codegen/plugin-helpers@4.1.0
2.0.0
Major Changes
Patch Changes
1.18.3
Patch Changes
- #8836
4fa0a566eThanks @renovate! - dependencies updates:- Updated dependency
nock@13.3.0↗︎ (from13.2.9, independencies)
- Updated dependency
1.18.2
Patch Changes
-
46f75304aThanks @saihaj! - fix the version of@graphql-codegen/plugin-helpers@3.1.1 -
Updated dependencies [
307a5d350]:- @graphql-codegen/plugin-helpers@3.1.1
1.18.1
Patch Changes
1.18.0
Minor Changes
- #8556
64e553c3fThanks @charlypoly! -mockGraphQLServer, resolvers common testing helpers and fixtures, typing updates