Skip to content

React router v7 update #520

React router v7 update

React router v7 update #520

Triggered via pull request January 5, 2025 03:15
Status Failure
Total duration 1m 25s
Artifacts

test_client.yaml

on: pull_request
Matrix: Run Client Tests
Matrix: Test Build Client
Fit to window
Zoom out
Zoom in

Annotations

26 errors and 2 warnings
Test Build Client (20)
Cannot find module 'react-router-dom' or its corresponding type declarations.
Test Build Client (20)
Cannot find module 'react-router-dom' or its corresponding type declarations.
Test Build Client (20)
Cannot find module 'react-router-dom' or its corresponding type declarations.
Test Build Client (20)
Cannot find module 'react-router-dom' or its corresponding type declarations.
Test Build Client (20)
Process completed with exit code 2.
Test Build Client (18)
The job was canceled because "_20" failed.
Test Build Client (18)
Cannot find module 'react-router-dom' or its corresponding type declarations.
Test Build Client (18)
Cannot find module 'react-router-dom' or its corresponding type declarations.
Test Build Client (18)
Cannot find module 'react-router-dom' or its corresponding type declarations.
Test Build Client (18)
Cannot find module 'react-router-dom' or its corresponding type declarations.
Test Build Client (18)
Process completed with exit code 2.
app/features/errorPage/ErrorPage.spec.tsx > ErrorPage > navigates back when Return button is clicked: client/app/features/errorPage/ErrorPage.spec.tsx#L25
TypeError: vi.mocked(...).mockReturnValue is not a function ❯ app/features/errorPage/ErrorPage.spec.tsx:25:28
app/features/manifestDetails/ManifestDetails.spec.tsx > ManifestDetails > renders loading spinner when data is loading: client/app/features/manifestDetails/ManifestDetails.spec.tsx#L45
TestingLibraryElementError: Unable to find an element by: [data-testid="spinner"] Ignored nodes: comments, script, style <body> <div> <div class="text-danger" > <h2> Something went wrong </h2> </div> </div> </body> ❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ app/features/manifestDetails/ManifestDetails.spec.tsx:45:19
app/features/manifestDetails/ManifestDetails.spec.tsx > ManifestDetails > renders error message when there is an error: client/app/features/manifestDetails/ManifestDetails.spec.tsx#L27
TestingLibraryElementError: Unable to find an element by: [data-testid="/spinner/i"] Ignored nodes: comments, script, style <body> <div> <div class="text-danger" > <h2> Something went wrong </h2> </div> </div> </body> Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="text-danger" > <h2> Something went wrong </h2> </div> </div> </body> </html> ❯ Proxy.waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27 ❯ waitForLoading app/features/manifestDetails/ManifestDetails.spec.tsx:27:11 ❯ app/features/manifestDetails/ManifestDetails.spec.tsx:56:11
app/features/siteDetails/SiteDetails.spec.tsx > SiteDetails > renders site details when data is available: client/app/features/siteDetails/SiteDetails.spec.tsx#L32
TestingLibraryElementError: Unable to find an element with the text: test-site. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div class="tw-container" > <div class="my-3 tw-flex tw-flex-col tw-space-y-2" > <h2 class="tw-text-start tw-text-2xl tw-font-bold" > Site Details </h2> <div class="tw-flex tw-flex-row-reverse tw-pe-0" > <button class="tw-text-md tw-inline-flex tw-items-center tw-justify-center tw-whitespace-nowrap tw-p-2 tw-font-medium tw-ring-offset-background tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/90 tw-h-10 tw-rounded-md" > View Manifest </button> </div> <div class="tw-rounded-lg tw-border tw-bg-card tw-text-card-foreground tw-shadow-sm tw-drop-shadow-2xl" > <div class="tw-flex tw-flex-col tw-space-y-1.5 tw-p-6" > <h2 class="tw-text-xl tw-font-bold" /> </div> <div class="tw-p-6 tw-pt-0 tw-p-5" > <p> error </p> </div> </div> </div> </div> </div> </body> ❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:109:15 ❯ app/features/siteDetails/SiteDetails.spec.tsx:32:19
app/hooks/useOrg/useOrg.spec.tsx > useOrg Hook > returns the initial orgId from search params: client/app/hooks/useOrg/useOrg.spec.tsx#L22
TypeError: useSearchParams.mockReturnValue is not a function ❯ app/hooks/useOrg/useOrg.spec.tsx:22:31
app/hooks/useOrg/useOrg.spec.tsx > useOrg Hook > sets the orgId state and updates search params: client/app/hooks/useOrg/useOrg.spec.tsx#L32
TypeError: useSearchParams.mockReturnValue is not a function ❯ app/hooks/useOrg/useOrg.spec.tsx:32:31
Run Client Tests (20)
Process completed with exit code 1.
Run Client Tests (18)
The job was canceled because "_20" failed.
app/features/errorPage/ErrorPage.spec.tsx > ErrorPage > navigates back when Return button is clicked: client/app/features/errorPage/ErrorPage.spec.tsx#L25
TypeError: vi.mocked(...).mockReturnValue is not a function ❯ app/features/errorPage/ErrorPage.spec.tsx:25:28
app/features/manifestDetails/ManifestDetails.spec.tsx > ManifestDetails > renders loading spinner when data is loading: client/app/features/manifestDetails/ManifestDetails.spec.tsx#L45
TestingLibraryElementError: Unable to find an element by: [data-testid="spinner"] Ignored nodes: comments, script, style <body> <div> <div class="text-danger" > <h2> Something went wrong </h2> </div> </div> </body> ❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ app/features/manifestDetails/ManifestDetails.spec.tsx:45:19
app/features/manifestDetails/ManifestDetails.spec.tsx > ManifestDetails > renders error message when there is an error: client/app/features/manifestDetails/ManifestDetails.spec.tsx#L27
TestingLibraryElementError: Unable to find an element by: [data-testid="/spinner/i"] Ignored nodes: comments, script, style <body> <div> <div class="text-danger" > <h2> Something went wrong </h2> </div> </div> </body> Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="text-danger" > <h2> Something went wrong </h2> </div> </div> </body> </html> ❯ Proxy.waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27 ❯ waitForLoading app/features/manifestDetails/ManifestDetails.spec.tsx:27:11 ❯ app/features/manifestDetails/ManifestDetails.spec.tsx:56:11
app/features/siteDetails/SiteDetails.spec.tsx > SiteDetails > renders site details when data is available: client/app/features/siteDetails/SiteDetails.spec.tsx#L32
TestingLibraryElementError: Unable to find an element with the text: test-site. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div class="tw-container" > <div class="my-3 tw-flex tw-flex-col tw-space-y-2" > <h2 class="tw-text-start tw-text-2xl tw-font-bold" > Site Details </h2> <div class="tw-flex tw-flex-row-reverse tw-pe-0" > <button class="tw-text-md tw-inline-flex tw-items-center tw-justify-center tw-whitespace-nowrap tw-p-2 tw-font-medium tw-ring-offset-background tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/90 tw-h-10 tw-rounded-md" > View Manifest </button> </div> <div class="tw-rounded-lg tw-border tw-bg-card tw-text-card-foreground tw-shadow-sm tw-drop-shadow-2xl" > <div class="tw-flex tw-flex-col tw-space-y-1.5 tw-p-6" > <h2 class="tw-text-xl tw-font-bold" /> </div> <div class="tw-p-6 tw-pt-0 tw-p-5" > <p> error </p> </div> </div> </div> </div> </div> </body> ❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:109:15 ❯ app/features/siteDetails/SiteDetails.spec.tsx:32:19
app/hooks/useOrg/useOrg.spec.tsx > useOrg Hook > returns the initial orgId from search params: client/app/hooks/useOrg/useOrg.spec.tsx#L22
TypeError: useSearchParams.mockReturnValue is not a function ❯ app/hooks/useOrg/useOrg.spec.tsx:22:31
app/hooks/useOrg/useOrg.spec.tsx > useOrg Hook > sets the orgId state and updates search params: client/app/hooks/useOrg/useOrg.spec.tsx#L32
TypeError: useSearchParams.mockReturnValue is not a function ❯ app/hooks/useOrg/useOrg.spec.tsx:32:31
Run Client Tests (18)
The operation was canceled.
Test Build Client (20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run Client Tests (20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636