diff --git a/.circleci/config.yml b/.circleci/config.yml index 4b1adebcaf9..063b2abecc1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,7 +15,7 @@ jobs: Lint: docker: - - image: cimg/node:23.3.0 + - image: cimg/node:23.5.0 steps: - checkout - run: npm version @@ -24,7 +24,7 @@ jobs: Formatting: docker: - - image: cimg/node:23.3.0 + - image: cimg/node:23.5.0 steps: - checkout - run: npm ci @@ -32,7 +32,7 @@ jobs: Tests: docker: - - image: cimg/node:23.3.0 + - image: cimg/node:23.5.0 parameters: project: type: string @@ -53,7 +53,7 @@ jobs: path: reports/junit Attest: docker: - - image: cimg/node:23.3.0 + - image: cimg/node:23.5.0 steps: - checkout - run: npm ci @@ -61,7 +61,7 @@ jobs: BuildTarball: docker: - - image: cimg/node:23.3.0 + - image: cimg/node:23.5.0 steps: - checkout - run: npm run ci:precheck @@ -80,7 +80,7 @@ jobs: react: type: string docker: - - image: cimg/node:23.3.0-browsers + - image: cimg/node:23.5.0-browsers steps: - checkout - attach_workspace: @@ -118,7 +118,7 @@ jobs: externalPackage: type: string docker: - - image: cimg/node:23.3.0 + - image: cimg/node:23.5.0 steps: - checkout - attach_workspace: diff --git a/.size-limits.json b/.size-limits.json index 54621796c0c..5790c408cde 100644 --- a/.size-limits.json +++ b/.size-limits.json @@ -1,4 +1,4 @@ { - "dist/apollo-client.min.cjs": 41639, + "dist/apollo-client.min.cjs": 41640, "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 34381 } diff --git a/src/react/hooks/__tests__/useSubscription.test.tsx b/src/react/hooks/__tests__/useSubscription.test.tsx index 7807224ba8b..f3aa2099bfd 100644 --- a/src/react/hooks/__tests__/useSubscription.test.tsx +++ b/src/react/hooks/__tests__/useSubscription.test.tsx @@ -12,7 +12,7 @@ import { import { PROTOCOL_ERRORS_SYMBOL } from "../../../errors"; import { InMemoryCache as Cache } from "../../../cache"; import { ApolloProvider } from "../../context"; -import { MockSubscriptionLink } from "../../../testing"; +import { MockSubscriptionLink, wait } from "../../../testing"; import { useSubscription } from "../useSubscription"; import { spyOnConsole } from "../../../testing/internal"; import { SubscriptionHookOptions } from "../../types/types"; @@ -1961,6 +1961,7 @@ describe("ignoreResults", () => { } ); if (!IS_REACT_17) { + await wait(0); expect(subscriptionCreated).toHaveBeenCalledTimes(1); } @@ -2034,6 +2035,7 @@ describe("ignoreResults", () => { } ); if (!IS_REACT_17) { + await wait(0); expect(subscriptionCreated).toHaveBeenCalledTimes(1); }