Skip to content

Commit

Permalink
Remove itAsync test function from @apollo/client/testing (#12262)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller authored Jan 13, 2025
1 parent 9b5e47e commit 10ef733
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 49 deletions.
7 changes: 0 additions & 7 deletions .api-reports/api-report-testing.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -908,13 +908,6 @@ function isReference(obj: any): obj is Reference;
// @public (undocumented)
type IsStrictlyAny<T> = UnionToIntersection<UnionForAny<T>> extends never ? true : false;

// @public (undocumented)
export const itAsync: ((this: unknown, message: string, callback: (resolve: (result?: any) => void, reject: (reason?: any) => void) => any, timeout?: number | undefined) => void) & {
only: (message: string, callback: (resolve: (result?: any) => void, reject: (reason?: any) => void) => any, timeout?: number) => void;
skip: (message: string, callback: (resolve: (result?: any) => void, reject: (reason?: any) => void) => any, timeout?: number) => void;
todo: (message: string, callback: (resolve: (result?: any) => void, reject: (reason?: any) => void) => any, timeout?: number) => void;
};

// @public (undocumented)
class LocalState<TCacheShape> {
// Warning: (ae-forgotten-export) The symbol "LocalStateOptions" needs to be exported by the entry point index.d.ts
Expand Down
7 changes: 0 additions & 7 deletions .api-reports/api-report-testing_core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -907,13 +907,6 @@ function isReference(obj: any): obj is Reference;
// @public (undocumented)
type IsStrictlyAny<T> = UnionToIntersection<UnionForAny<T>> extends never ? true : false;

// @public (undocumented)
export const itAsync: ((this: unknown, message: string, callback: (resolve: (result?: any) => void, reject: (reason?: any) => void) => any, timeout?: number | undefined) => void) & {
only: (message: string, callback: (resolve: (result?: any) => void, reject: (reason?: any) => void) => any, timeout?: number) => void;
skip: (message: string, callback: (resolve: (result?: any) => void, reject: (reason?: any) => void) => any, timeout?: number) => void;
todo: (message: string, callback: (resolve: (result?: any) => void, reject: (reason?: any) => void) => any, timeout?: number) => void;
};

// @public (undocumented)
class LocalState<TCacheShape> {
// Warning: (ae-forgotten-export) The symbol "LocalStateOptions" needs to be exported by the entry point index.d.ts
Expand Down
5 changes: 5 additions & 0 deletions .changeset/itchy-drinks-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": major
---

Remove `itAsync` test utility.
2 changes: 0 additions & 2 deletions src/__tests__/__snapshots__/exports.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ Array [
"MockSubscriptionLink",
"MockedProvider",
"createMockClient",
"itAsync",
"mockObservableLink",
"mockSingleLink",
"tick",
Expand All @@ -376,7 +375,6 @@ Array [
"MockLink",
"MockSubscriptionLink",
"createMockClient",
"itAsync",
"mockObservableLink",
"mockSingleLink",
"tick",
Expand Down
1 change: 0 additions & 1 deletion src/testing/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ export {
mockObservableLink,
} from "./mocking/mockSubscriptionLink.js";
export { createMockClient } from "./mocking/mockClient.js";
export { itAsync } from "./itAsync.js";
export { wait, tick } from "./wait.js";
export * from "./withConsoleSpy.js";
32 changes: 0 additions & 32 deletions src/testing/core/itAsync.ts

This file was deleted.

0 comments on commit 10ef733

Please sign in to comment.