Skip to content

Commit

Permalink
Remove subscribeAndCount testing utility (#12223)
Browse files Browse the repository at this point in the history
Co-authored-by: Lenz Weber-Tronic <[email protected]>
Co-authored-by: phryneas <[email protected]>
  • Loading branch information
3 people authored Dec 16, 2024
1 parent d1a9054 commit 69c1cb6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 41 deletions.
3 changes: 0 additions & 3 deletions .api-reports/api-report-testing.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1814,9 +1814,6 @@ Item
// @public (undocumented)
type StoreValue = number | string | string[] | Reference | Reference[] | null | undefined | void | Object;

// @public (undocumented)
export function subscribeAndCount<TResult>(reject: (reason: any) => any, observable: Observable<TResult>, cb: (handleCount: number, result: TResult) => any): Subscription;

// @public (undocumented)
type SubscribeToMoreOptions<TData = any, TSubscriptionVariables = OperationVariables, TSubscriptionData = TData> = {
document: DocumentNode | TypedDocumentNode<TSubscriptionData, TSubscriptionVariables>;
Expand Down
3 changes: 0 additions & 3 deletions .api-reports/api-report-testing_core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1771,9 +1771,6 @@ Item
// @public (undocumented)
type StoreValue = number | string | string[] | Reference | Reference[] | null | undefined | void | Object;

// @public (undocumented)
export function subscribeAndCount<TResult>(reject: (reason: any) => any, observable: Observable<TResult>, cb: (handleCount: number, result: TResult) => any): Subscription;

// @public (undocumented)
type SubscribeToMoreOptions<TData = any, TSubscriptionVariables = OperationVariables, TSubscriptionData = TData> = {
document: DocumentNode | TypedDocumentNode<TSubscriptionData, TSubscriptionVariables>;
Expand Down
5 changes: 5 additions & 0 deletions .changeset/shiny-carrots-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": major
---

Remove `subscribeAndCount` testing utility from `@apollo/client/testing`.
2 changes: 0 additions & 2 deletions src/__tests__/__snapshots__/exports.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ Array [
"itAsync",
"mockObservableLink",
"mockSingleLink",
"subscribeAndCount",
"tick",
"wait",
"withErrorSpy",
Expand All @@ -380,7 +379,6 @@ Array [
"itAsync",
"mockObservableLink",
"mockSingleLink",
"subscribeAndCount",
"tick",
"wait",
"withErrorSpy",
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,7 +9,6 @@ export {
mockObservableLink,
} from "./mocking/mockSubscriptionLink.js";
export { createMockClient } from "./mocking/mockClient.js";
export { default as subscribeAndCount } from "./subscribeAndCount.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/subscribeAndCount.ts

This file was deleted.

0 comments on commit 69c1cb6

Please sign in to comment.