Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(issue-details): Allows replays section to reflect filters #81128

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

leeandher
Copy link
Member

@leeandher leeandher commented Nov 21, 2024

Uses the issue details query to ensure replays reflect the queries set above in the new UI.

Things to do:

  • Add tests where necessary
  • Change the header text for the replays tab
  • Have the count also be dynamic
image image

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 21, 2024
Copy link

codecov bot commented Nov 21, 2024

Bundle Report

Changes will increase total bundle size by 16.32kB (0.05%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
app-webpack-bundle-array-push 31.97MB 16.32kB (0.05%) ⬆️

Copy link

codecov bot commented Nov 21, 2024

❌ 12 Tests Failed:

Tests completed Failed Passed Skipped
8245 12 8233 0
View the top 3 failed tests by shortest run time
useReplaysFromIssue should fetch a list of replay ids for a performance issue
Stack Traces | 0.013s run time
Error: Expected test not to call console.error().

If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs.

Error: Uncaught [Error: useOrganization called but organization is not set.]
    at reportException (.../living/helpers/runtime-script-errors.js:66:24)
    at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
    at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25738:74)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:78:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12) {
  detail: Error: useOrganization called but organization is not set.
      at useOrganization (.../app/utils/useOrganization.tsx:275:11)
      at useHasStreamlinedUI (.../views/issueDetails/utils.tsx:2853:11)
      at useReplaysFromIssue (.../issueDetails/groupReplays/useReplaysFromIssue.tsx:748:23)
      at TestComponent (.../sentry/sentry/node_modules/@.../react/dist/pure.js:309:27)
      at renderWithHooks (.../react-dom/cjs/react-dom.development.js:16305:18)
      at mountIndeterminateComponent (.../react-dom/cjs/react-dom.development.js:20074:13)
      at beginWork (.../react-dom/cjs/react-dom.development.js:21587:16)
      at HTMLUnknownElement.callCallback (.../react-dom/cjs/react-dom.development.js:4164:14)
      at HTMLUnknownElement.callTheUserObjectsOperation (.../sentry/sentry/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
      at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:350:25)
      at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
      at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
      at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
      at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
      at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
      at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
      at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
      at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
      at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25738:74)
      at flushActQueue (.../react/cjs/react.development.js:2667:24)
      at act (.../react/cjs/react.development.js:2582:11)
      at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
      at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
      at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
      at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
      at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:78:45)
      at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
      at new Promise (<anonymous>)
      at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
      at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
      at processTicksAndRejections (node:internal/process/task_queues:105:5)
      at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
      at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
      at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
      at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
      at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
      at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
      at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
      at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
      at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12),
  type: 'unhandled exception'
}
    at console.captureMessage [as error] (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:83:25)
    at VirtualConsole.<anonymous> (.../sentry/sentry/node_modules/jest-environment-jsdom/build/index.js:63:23)
    at VirtualConsole.emit (node:events:518:28)
    at reportException (.../living/helpers/runtime-script-errors.js:70:28)
    at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
    at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25738:74)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:78:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12)

Error: Uncaught [Error: useOrganization called but organization is not set.]
    at reportException (.../living/helpers/runtime-script-errors.js:66:24)
    at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
    at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
    at recoverFromConcurrentError (.../react-dom/cjs/react-dom.development.js:25850:20)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25750:22)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:78:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12) {
  detail: Error: useOrganization called but organization is not set.
      at useOrganization (.../app/utils/useOrganization.tsx:275:11)
      at useHasStreamlinedUI (.../views/issueDetails/utils.tsx:2853:11)
      at useReplaysFromIssue (.../issueDetails/groupReplays/useReplaysFromIssue.tsx:748:23)
      at TestComponent (.../sentry/sentry/node_modules/@.../react/dist/pure.js:309:27)
      at renderWithHooks (.../react-dom/cjs/react-dom.development.js:16305:18)
      at mountIndeterminateComponent (.../react-dom/cjs/react-dom.development.js:20074:13)
      at beginWork (.../react-dom/cjs/react-dom.development.js:21587:16)
      at HTMLUnknownElement.callCallback (.../react-dom/cjs/react-dom.development.js:4164:14)
      at HTMLUnknownElement.callTheUserObjectsOperation (.../sentry/sentry/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
      at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:350:25)
      at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
      at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
      at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
      at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
      at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
      at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
      at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
      at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
      at recoverFromConcurrentError (.../react-dom/cjs/react-dom.development.js:25850:20)
      at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25750:22)
      at flushActQueue (.../react/cjs/react.development.js:2667:24)
      at act (.../react/cjs/react.development.js:2582:11)
      at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
      at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
      at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
      at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
      at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:78:45)
      at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
      at new Promise (<anonymous>)
      at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
      at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
      at processTicksAndRejections (node:internal/process/task_queues:105:5)
      at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
      at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
      at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
      at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
      at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
      at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
      at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
      at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
      at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12),
  type: 'unhandled exception'
}
    at console.captureMessage [as error] (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:83:25)
    at VirtualConsole.<anonymous> (.../sentry/sentry/node_modules/jest-environment-jsdom/build/index.js:63:23)
    at VirtualConsole.emit (node:events:518:28)
    at reportException (.../living/helpers/runtime-script-errors.js:70:28)
    at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
    at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
    at recoverFromConcurrentError (.../react-dom/cjs/react-dom.development.js:25850:20)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25750:22)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:78:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12)

The above error occurred in the <TestComponent> component:

    at TestComponent (.../sentry/sentry/node_modules/@.../react/dist/pure.js:307:5)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
    at console.captureMessage [as error] (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:83:25)
    at logCapturedError (.../react-dom/cjs/react-dom.development.js:18687:23)
    at update.callback (.../react-dom/cjs/react-dom.development.js:18720:5)
    at callCallback (.../react-dom/cjs/react-dom.development.js:13923:12)
    at commitUpdateQueue (.../react-dom/cjs/react-dom.development.js:13944:9)
    at commitLayoutEffectOnFiber (.../react-dom/cjs/react-dom.development.js:23391:13)
    at commitLayoutMountEffects_complete (.../react-dom/cjs/react-dom.development.js:24688:9)
    at commitLayoutEffects_begin (.../react-dom/cjs/react-dom.development.js:24674:7)
    at commitLayoutEffects (.../react-dom/cjs/react-dom.development.js:24612:3)
    at commitRootImpl (.../react-dom/cjs/react-dom.development.js:26823:5)
    at commitRoot (.../react-dom/cjs/react-dom.development.js:26682:5)
    at finishConcurrentRender (.../react-dom/cjs/react-dom.development.js:25892:9)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25809:7)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:78:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12)
    at flushUnexpectedConsoleCalls (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:48:13)
    at Object.<anonymous> (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:139:7)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (.../sentry/sentry/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:254:5)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12)
useReplaysFromIssue should return an empty EventView when there are no replay_ids returned from the count endpoint
Stack Traces | 0.013s run time
Error: Expected test not to call console.error().

If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs.

Error: Uncaught [Error: useOrganization called but organization is not set.]
    at reportException (.../living/helpers/runtime-script-errors.js:66:24)
    at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
    at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25738:74)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:109:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12) {
  detail: Error: useOrganization called but organization is not set.
      at useOrganization (.../app/utils/useOrganization.tsx:275:11)
      at useHasStreamlinedUI (.../views/issueDetails/utils.tsx:2853:11)
      at useReplaysFromIssue (.../issueDetails/groupReplays/useReplaysFromIssue.tsx:748:23)
      at TestComponent (.../sentry/sentry/node_modules/@.../react/dist/pure.js:309:27)
      at renderWithHooks (.../react-dom/cjs/react-dom.development.js:16305:18)
      at mountIndeterminateComponent (.../react-dom/cjs/react-dom.development.js:20074:13)
      at beginWork (.../react-dom/cjs/react-dom.development.js:21587:16)
      at HTMLUnknownElement.callCallback (.../react-dom/cjs/react-dom.development.js:4164:14)
      at HTMLUnknownElement.callTheUserObjectsOperation (.../sentry/sentry/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
      at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:350:25)
      at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
      at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
      at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
      at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
      at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
      at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
      at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
      at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
      at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25738:74)
      at flushActQueue (.../react/cjs/react.development.js:2667:24)
      at act (.../react/cjs/react.development.js:2582:11)
      at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
      at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
      at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
      at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
      at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:109:45)
      at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
      at new Promise (<anonymous>)
      at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
      at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
      at processTicksAndRejections (node:internal/process/task_queues:105:5)
      at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
      at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
      at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
      at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
      at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
      at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
      at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
      at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
      at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12),
  type: 'unhandled exception'
}
    at console.captureMessage [as error] (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:83:25)
    at VirtualConsole.<anonymous> (.../sentry/sentry/node_modules/jest-environment-jsdom/build/index.js:63:23)
    at VirtualConsole.emit (node:events:518:28)
    at reportException (.../living/helpers/runtime-script-errors.js:70:28)
    at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
    at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25738:74)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:109:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12)

Error: Uncaught [Error: useOrganization called but organization is not set.]
    at reportException (.../living/helpers/runtime-script-errors.js:66:24)
    at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
    at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
    at recoverFromConcurrentError (.../react-dom/cjs/react-dom.development.js:25850:20)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25750:22)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:109:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12) {
  detail: Error: useOrganization called but organization is not set.
      at useOrganization (.../app/utils/useOrganization.tsx:275:11)
      at useHasStreamlinedUI (.../views/issueDetails/utils.tsx:2853:11)
      at useReplaysFromIssue (.../issueDetails/groupReplays/useReplaysFromIssue.tsx:748:23)
      at TestComponent (.../sentry/sentry/node_modules/@.../react/dist/pure.js:309:27)
      at renderWithHooks (.../react-dom/cjs/react-dom.development.js:16305:18)
      at mountIndeterminateComponent (.../react-dom/cjs/react-dom.development.js:20074:13)
      at beginWork (.../react-dom/cjs/react-dom.development.js:21587:16)
      at HTMLUnknownElement.callCallback (.../react-dom/cjs/react-dom.development.js:4164:14)
      at HTMLUnknownElement.callTheUserObjectsOperation (.../sentry/sentry/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
      at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:350:25)
      at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
      at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
      at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
      at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
      at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
      at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
      at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
      at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
      at recoverFromConcurrentError (.../react-dom/cjs/react-dom.development.js:25850:20)
      at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25750:22)
      at flushActQueue (.../react/cjs/react.development.js:2667:24)
      at act (.../react/cjs/react.development.js:2582:11)
      at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
      at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
      at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
      at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
      at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:109:45)
      at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
      at new Promise (<anonymous>)
      at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
      at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
      at processTicksAndRejections (node:internal/process/task_queues:105:5)
      at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
      at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
      at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
      at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
      at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
      at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
      at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
      at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
      at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12),
  type: 'unhandled exception'
}
    at console.captureMessage [as error] (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:83:25)
    at VirtualConsole.<anonymous> (.../sentry/sentry/node_modules/jest-environment-jsdom/build/index.js:63:23)
    at VirtualConsole.emit (node:events:518:28)
    at reportException (.../living/helpers/runtime-script-errors.js:70:28)
    at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
    at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
    at recoverFromConcurrentError (.../react-dom/cjs/react-dom.development.js:25850:20)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25750:22)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:109:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12)

The above error occurred in the <TestComponent> component:

    at TestComponent (.../sentry/sentry/node_modules/@.../react/dist/pure.js:307:5)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
    at console.captureMessage [as error] (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:83:25)
    at logCapturedError (.../react-dom/cjs/react-dom.development.js:18687:23)
    at update.callback (.../react-dom/cjs/react-dom.development.js:18720:5)
    at callCallback (.../react-dom/cjs/react-dom.development.js:13923:12)
    at commitUpdateQueue (.../react-dom/cjs/react-dom.development.js:13944:9)
    at commitLayoutEffectOnFiber (.../react-dom/cjs/react-dom.development.js:23391:13)
    at commitLayoutMountEffects_complete (.../react-dom/cjs/react-dom.development.js:24688:9)
    at commitLayoutEffects_begin (.../react-dom/cjs/react-dom.development.js:24674:7)
    at commitLayoutEffects (.../react-dom/cjs/react-dom.development.js:24612:3)
    at commitRootImpl (.../react-dom/cjs/react-dom.development.js:26823:5)
    at commitRoot (.../react-dom/cjs/react-dom.development.js:26682:5)
    at finishConcurrentRender (.../react-dom/cjs/react-dom.development.js:25892:9)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25809:7)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:109:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12)
    at flushUnexpectedConsoleCalls (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:48:13)
    at Object.<anonymous> (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:139:7)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (.../sentry/sentry/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:254:5)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12)
useReplaysFromIssue should fetch a list of replay ids
Stack Traces | 0.052s run time
Error: Expected test not to call console.error().

If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs.

Error: Uncaught [Error: useOrganization called but organization is not set.]
    at reportException (.../living/helpers/runtime-script-errors.js:66:24)
    at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
    at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25738:74)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:43:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12) {
  detail: Error: useOrganization called but organization is not set.
      at useOrganization (.../app/utils/useOrganization.tsx:275:11)
      at useHasStreamlinedUI (.../views/issueDetails/utils.tsx:2853:11)
      at useReplaysFromIssue (.../issueDetails/groupReplays/useReplaysFromIssue.tsx:748:23)
      at TestComponent (.../sentry/sentry/node_modules/@.../react/dist/pure.js:309:27)
      at renderWithHooks (.../react-dom/cjs/react-dom.development.js:16305:18)
      at mountIndeterminateComponent (.../react-dom/cjs/react-dom.development.js:20074:13)
      at beginWork (.../react-dom/cjs/react-dom.development.js:21587:16)
      at HTMLUnknownElement.callCallback (.../react-dom/cjs/react-dom.development.js:4164:14)
      at HTMLUnknownElement.callTheUserObjectsOperation (.../sentry/sentry/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
      at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:350:25)
      at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
      at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
      at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
      at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
      at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
      at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
      at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
      at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
      at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25738:74)
      at flushActQueue (.../react/cjs/react.development.js:2667:24)
      at act (.../react/cjs/react.development.js:2582:11)
      at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
      at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
      at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
      at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
      at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:43:45)
      at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
      at new Promise (<anonymous>)
      at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
      at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
      at processTicksAndRejections (node:internal/process/task_queues:105:5)
      at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
      at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
      at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
      at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
      at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
      at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
      at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
      at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
      at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12),
  type: 'unhandled exception'
}
    at console.captureMessage [as error] (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:83:25)
    at VirtualConsole.<anonymous> (.../sentry/sentry/node_modules/jest-environment-jsdom/build/index.js:63:23)
    at VirtualConsole.emit (node:events:518:28)
    at reportException (.../living/helpers/runtime-script-errors.js:70:28)
    at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
    at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25738:74)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:43:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12)

Error: Uncaught [Error: useOrganization called but organization is not set.]
    at reportException (.../living/helpers/runtime-script-errors.js:66:24)
    at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
    at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
    at recoverFromConcurrentError (.../react-dom/cjs/react-dom.development.js:25850:20)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25750:22)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:43:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12) {
  detail: Error: useOrganization called but organization is not set.
      at useOrganization (.../app/utils/useOrganization.tsx:275:11)
      at useHasStreamlinedUI (.../views/issueDetails/utils.tsx:2853:11)
      at useReplaysFromIssue (.../issueDetails/groupReplays/useReplaysFromIssue.tsx:748:23)
      at TestComponent (.../sentry/sentry/node_modules/@.../react/dist/pure.js:309:27)
      at renderWithHooks (.../react-dom/cjs/react-dom.development.js:16305:18)
      at mountIndeterminateComponent (.../react-dom/cjs/react-dom.development.js:20074:13)
      at beginWork (.../react-dom/cjs/react-dom.development.js:21587:16)
      at HTMLUnknownElement.callCallback (.../react-dom/cjs/react-dom.development.js:4164:14)
      at HTMLUnknownElement.callTheUserObjectsOperation (.../sentry/sentry/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
      at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:350:25)
      at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
      at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
      at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
      at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
      at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
      at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
      at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
      at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
      at recoverFromConcurrentError (.../react-dom/cjs/react-dom.development.js:25850:20)
      at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25750:22)
      at flushActQueue (.../react/cjs/react.development.js:2667:24)
      at act (.../react/cjs/react.development.js:2582:11)
      at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
      at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
      at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
      at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
      at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:43:45)
      at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
      at new Promise (<anonymous>)
      at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
      at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
      at processTicksAndRejections (node:internal/process/task_queues:105:5)
      at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
      at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
      at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
      at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
      at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
      at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
      at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
      at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
      at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12),
  type: 'unhandled exception'
}
    at console.captureMessage [as error] (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:83:25)
    at VirtualConsole.<anonymous> (.../sentry/sentry/node_modules/jest-environment-jsdom/build/index.js:63:23)
    at VirtualConsole.emit (node:events:518:28)
    at reportException (.../living/helpers/runtime-script-errors.js:70:28)
    at innerInvokeEventListeners (.../living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (.../living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (.../living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (.../living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (.../living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (.../react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (.../react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (.../react-dom/cjs/react-dom.development.js:27451:7)
    at performUnitOfWork (.../react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (.../react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (.../react-dom/cjs/react-dom.development.js:26434:7)
    at recoverFromConcurrentError (.../react-dom/cjs/react-dom.development.js:25850:20)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25750:22)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:43:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12)

The above error occurred in the <TestComponent> component:

    at TestComponent (.../sentry/sentry/node_modules/@.../react/dist/pure.js:307:5)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
    at console.captureMessage [as error] (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:83:25)
    at logCapturedError (.../react-dom/cjs/react-dom.development.js:18687:23)
    at update.callback (.../react-dom/cjs/react-dom.development.js:18720:5)
    at callCallback (.../react-dom/cjs/react-dom.development.js:13923:12)
    at commitUpdateQueue (.../react-dom/cjs/react-dom.development.js:13944:9)
    at commitLayoutEffectOnFiber (.../react-dom/cjs/react-dom.development.js:23391:13)
    at commitLayoutMountEffects_complete (.../react-dom/cjs/react-dom.development.js:24688:9)
    at commitLayoutEffects_begin (.../react-dom/cjs/react-dom.development.js:24674:7)
    at commitLayoutEffects (.../react-dom/cjs/react-dom.development.js:24612:3)
    at commitRootImpl (.../react-dom/cjs/react-dom.development.js:26823:5)
    at commitRoot (.../react-dom/cjs/react-dom.development.js:26682:5)
    at finishConcurrentRender (.../react-dom/cjs/react-dom.development.js:25892:9)
    at performConcurrentWorkOnRoot (.../react-dom/cjs/react-dom.development.js:25809:7)
    at flushActQueue (.../react/cjs/react.development.js:2667:24)
    at act (.../react/cjs/react.development.js:2582:11)
    at .../sentry/sentry/node_modules/@.../react/dist/act-compat.js:47:25
    at renderRoot (.../sentry/sentry/node_modules/@.../react/dist/pure.js:180:26)
    at render (.../sentry/sentry/node_modules/@.../react/dist/pure.js:271:10)
    at renderHook (.../sentry/sentry/node_modules/@.../react/dist/pure.js:318:7)
    at Object.<anonymous> (.../issueDetails/groupReplays/useReplaysFromIssue.spec.tsx:43:45)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12)
    at flushUnexpectedConsoleCalls (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:48:13)
    at Object.<anonymous> (.../sentry/sentry/node_modules/jest-fail-on-console/index.js:139:7)
    at Promise.then.completed (.../sentry/sentry/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/sentry/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (.../sentry/sentry/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../sentry/sentry/node_modules/jest-circus/build/run.js:254:5)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../sentry/sentry/node_modules/jest-circus/build/run.js:121:9)
    at run (.../sentry/sentry/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../sentry/sentry/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (.../sentry/sentry/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (.../sentry/sentry/node_modules/jest-runner/build/testWorker.js:106:12)

To view more test analytics, go to the Test Analytics Dashboard
Got feedback? Let us know on Github

Comment on lines +9 to +27
export function useIssueDetailsEventCount({group}: {group: Group}) {
const eventView = useIssueDetailsEventView({group});
const {data: groupStats} = useIssueDetailsDiscoverQuery<MultiSeriesEventsStats>({
params: {
route: 'events-stats',
eventView,
referrer: 'issue_details.streamline_graph',
},
});
const eventCount = useMemo(() => {
if (!groupStats?.['count()']) {
return 0;
}
return groupStats['count()']?.data?.reduce((count, [_timestamp, countData]) => {
return count + (countData?.[0]?.count ?? 0);
}, 0);
}, [groupStats]);
return eventCount;
}
Copy link
Member Author

@leeandher leeandher Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This kinda sucks it's the entire query for a timeseries that I iterate over to create a count.

There is definitely an easier way, but I couldn't figure out the discover syntax to get there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant