Skip to content

Commit

Permalink
Deprecate experimental testing utilities (#11930)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jul 9, 2024
1 parent 3812800 commit a768575
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .api-reports/api-report-testing_experimental.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { FieldNode } from 'graphql';
import type { FragmentDefinitionNode } from 'graphql';
import type { GraphQLSchema } from 'graphql';

// @alpha
// @alpha @deprecated
export const createSchemaFetch: (schema: GraphQLSchema, mockFetchOpts?: {
validate?: boolean;
delay?: {
Expand All @@ -24,7 +24,7 @@ export const createSchemaFetch: (schema: GraphQLSchema, mockFetchOpts?: {
// Warning: (ae-forgotten-export) The symbol "TestSchemaOptions" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "ProxiedSchema" needs to be exported by the entry point index.d.ts
//
// @alpha
// @alpha @deprecated
export const createTestSchema: (schemaWithTypeDefs: GraphQLSchema, options: TestSchemaOptions) => ProxiedSchema;

// @public
Expand Down
5 changes: 5 additions & 0 deletions .changeset/weak-ads-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": minor
---

Deprecates experimental schema testing utilities introduced in 3.10 in favor of recommending [`@apollo/graphql-testing-library`](https://github.com/apollographql/graphql-testing-library).
2 changes: 2 additions & 0 deletions src/testing/experimental/createSchemaFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import { wait } from "../core/wait.js";
* ```
* @since 3.10.0
* @alpha
* @deprecated `createSchemaFetch` is deprecated and will be removed in 3.12.0.
* Please migrate to [`@apollo/graphql-testing-library`](https://github.com/apollographql/graphql-testing-library).
*/
const createSchemaFetch = (
schema: GraphQLSchema,
Expand Down
2 changes: 2 additions & 0 deletions src/testing/experimental/createTestSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ interface TestSchemaOptions {
* ```
* @since 3.9.0
* @alpha
* @deprecated `createTestSchema` is deprecated and will be removed in 3.12.0.
* Please migrate to [`@apollo/graphql-testing-library`](https://github.com/apollographql/graphql-testing-library).
*/
const createTestSchema = (
schemaWithTypeDefs: GraphQLSchema,
Expand Down

0 comments on commit a768575

Please sign in to comment.