Skip to content

Commit a768575

Browse files
authored
Deprecate experimental testing utilities (#11930)
1 parent 3812800 commit a768575

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.api-reports/api-report-testing_experimental.api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { FieldNode } from 'graphql';
88
import type { FragmentDefinitionNode } from 'graphql';
99
import type { GraphQLSchema } from 'graphql';
1010

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

3030
// @public

.changeset/weak-ads-develop.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@apollo/client": minor
3+
---
4+
5+
Deprecates experimental schema testing utilities introduced in 3.10 in favor of recommending [`@apollo/graphql-testing-library`](https://github.com/apollographql/graphql-testing-library).

src/testing/experimental/createSchemaFetch.ts

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import { wait } from "../core/wait.js";
3030
* ```
3131
* @since 3.10.0
3232
* @alpha
33+
* @deprecated `createSchemaFetch` is deprecated and will be removed in 3.12.0.
34+
* Please migrate to [`@apollo/graphql-testing-library`](https://github.com/apollographql/graphql-testing-library).
3335
*/
3436
const createSchemaFetch = (
3537
schema: GraphQLSchema,

src/testing/experimental/createTestSchema.ts

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ interface TestSchemaOptions {
5050
* ```
5151
* @since 3.9.0
5252
* @alpha
53+
* @deprecated `createTestSchema` is deprecated and will be removed in 3.12.0.
54+
* Please migrate to [`@apollo/graphql-testing-library`](https://github.com/apollographql/graphql-testing-library).
5355
*/
5456
const createTestSchema = (
5557
schemaWithTypeDefs: GraphQLSchema,

0 commit comments

Comments
 (0)