Skip to content

refactor: upgrade mutation to query for better caching #551

refactor: upgrade mutation to query for better caching

refactor: upgrade mutation to query for better caching #551

GitHub Actions / Jest Unit Test Results failed Nov 2, 2023 in 0s

3 fail, 1 skipped, 372 pass in 3m 52s

    1 files  ±0  142 suites  ±0   3m 52s ⏱️ +11s
376 tests ±0  372 ✔️  - 3  1 💤 ±0  3 +3 
378 runs  +1  374 ✔️  - 2  1 💤 ±0  3 +3 

Results for commit a4b13ff. ± Comparison against earlier commit e54369b.

Annotations

Check warning on line 0 in DonorsContainer should render component

See this annotation in the file changed.

@github-actions github-actions / Jest Unit Test Results

DonorsContainer should render component (DonorsContainer should render component) failed

artifacts/jest-junit/junit.xml
Raw output
TypeError: Cannot read properties of undefined (reading 'reduce')
    at DonorsContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DonorsList/DonorsContainer.js:28:28)
    at renderWithHooks (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
    at mountIndeterminateComponent (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
    at beginWork (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
    at beginWork$1 (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:27426:14)
    at performUnitOfWork (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
    at performSyncWorkOnRoot (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26085:20)
    at flushSyncCallbacks (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:12042:22)
    at flushSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26201:7)
    at legacyCreateRootFromDOMContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29575:5)
    at legacyRenderSubtreeIntoContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29601:12)
    at Object.render (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29685:10)
    at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/react/dist/pure.js:101:25
    at act (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react/cjs/react.development.js:2512:16)
    at render (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/react/dist/pure.js:97:26)
    at renderComponent (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DonorsList/DonorsContainer.test.js:46:48)
    at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DonorsList/DonorsContainer.test.js:61:5)
    at Object.asyncJestTest (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
    at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:45:12
    at new Promise (<anonymous>)
    at mapper (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
    at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:75:41
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check warning on line 0 in DonorsContainer should render Loading component

See this annotation in the file changed.

@github-actions github-actions / Jest Unit Test Results

DonorsContainer should render Loading component (DonorsContainer should render Loading component) failed

artifacts/jest-junit/junit.xml
Raw output
TypeError: Cannot read properties of undefined (reading 'reduce')
    at DonorsContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DonorsList/DonorsContainer.js:28:28)
    at renderWithHooks (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
    at mountIndeterminateComponent (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
    at beginWork (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
    at beginWork$1 (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:27426:14)
    at performUnitOfWork (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
    at performSyncWorkOnRoot (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26085:20)
    at flushSyncCallbacks (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:12042:22)
    at flushSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26201:7)
    at legacyCreateRootFromDOMContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29575:5)
    at legacyRenderSubtreeIntoContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29601:12)
    at Object.render (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29685:10)
    at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/react/dist/pure.js:101:25
    at act (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react/cjs/react.development.js:2512:16)
    at render (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/react/dist/pure.js:97:26)
    at renderComponent (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DonorsList/DonorsContainer.test.js:46:48)
    at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DonorsList/DonorsContainer.test.js:72:5)
    at Object.asyncJestTest (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
    at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:45:12
    at new Promise (<anonymous>)
    at mapper (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
    at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:75:41
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check warning on line 0 in DonorsContainer should call `fetchDonorsMutation` with `donorOrganizationIds`

See this annotation in the file changed.

@github-actions github-actions / Jest Unit Test Results

DonorsContainer should call `fetchDonorsMutation` with `donorOrganizationIds` (DonorsContainer should call `fetchDonorsMutation` with `donorOrganizationIds`) failed

artifacts/jest-junit/junit.xml
Raw output
TypeError: Cannot read properties of undefined (reading 'reduce')
    at DonorsContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DonorsList/DonorsContainer.js:28:28)
    at renderWithHooks (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
    at mountIndeterminateComponent (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
    at beginWork (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
    at beginWork$1 (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:27426:14)
    at performUnitOfWork (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
    at performSyncWorkOnRoot (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26085:20)
    at flushSyncCallbacks (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:12042:22)
    at flushSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26201:7)
    at legacyCreateRootFromDOMContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29575:5)
    at legacyRenderSubtreeIntoContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29601:12)
    at Object.render (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29685:10)
    at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/react/dist/pure.js:101:25
    at act (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react/cjs/react.development.js:2512:16)
    at render (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/react/dist/pure.js:97:26)
    at renderComponent (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DonorsList/DonorsContainer.test.js:46:48)
    at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DonorsList/DonorsContainer.test.js:88:5)
    at Object.asyncJestTest (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
    at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:45:12
    at new Promise (<anonymous>)
    at mapper (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
    at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:75:41
    at processTicksAndRejections (node:internal/process/task_queues:95:5)