Skip to content

Conversation

@TkDodo
Copy link
Collaborator

@TkDodo TkDodo commented Nov 7, 2025

No description provided.

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

codecov bot commented Nov 7, 2025

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
12393 2 12391 10
View the top 2 failed test(s) by shortest run time
PrimaryNavigationServiceIncidents displays button and list of incidents when clicked
Stack Traces | 1.01s 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.

[MSW] Error: intercepted a request without a matching request handler:

  • GET https://sentry.status.sentry..../v2/incidents/unresolved.json

If you still wish to intercept this unhandled request, please create a request handler for it.
Read more: https://mswjs..../docs/http/intercepting-requests
    at console.captureMessage [as error] (.../sentry/node_modules/.pnpm/[email protected]..../node_modules/jest-fail-on-console/index.js:83:25)
    at Object.error (.../sentry/node_modules/.pnpm/[email protected]_@[email protected][email protected]..../utils/internal/devUtils.ts:24:11)
    at applyStrategy (.../sentry/node_modules/.pnpm/[email protected]_@[email protected][email protected]..../utils/request/onUnhandledRequest.ts:39:18)
    at error (.../tests/js/setupMsw.ts:17:13)
    at onUnhandledRequest (.../sentry/node_modules/.pnpm/[email protected]_@[email protected][email protected]..../utils/request/onUnhandledRequest.ts:68:5)
    at handleRequest (.../sentry/node_modules/.pnpm/[email protected]_@[email protected][email protected]..../core/utils/handleRequest.ts:79:11)
    at _Emitter.<anonymous> (.../sentry/node_modules/.pnpm/[email protected]_@[email protected][email protected]..../src/node/SetupServerCommonApi.ts:60:26)
    at emitAsync (.../sentry/node_modules/.pnpm/@[email protected]/node_modules/@.../src/utils/emitAsync.ts:23:5)
    at .../sentry/node_modules/.pnpm/@[email protected]/node_modules/@.../src/utils/handleRequest.ts:123:5
    at until (.../sentry/node_modules/.pnpm/@[email protected]/node_modules/@.../until/src/until.ts:23:18)
    at handleRequest (.../sentry/node_modules/.pnpm/@[email protected]/node_modules/@.../src/utils/handleRequest.ts:112:18)
    at globalThis.fetch (.../sentry/node_modules/.pnpm/@[email protected]/node_modules/@.../interceptors/fetch/index.ts:185:7)
    at queryFn (.../app/utils/useServiceIncidents.tsx:46:16)
    at flushUnexpectedConsoleCalls (.../sentry/node_modules/.pnpm/[email protected]..../node_modules/jest-fail-on-console/index.js:48:13)
    at Object.<anonymous> (.../sentry/node_modules/.pnpm/[email protected]..../node_modules/jest-fail-on-console/index.js:145:7)
    at Promise.finally.completed (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:1559:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:1499:10)
    at _callCircusHook (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:978:40)
    at _runTest (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:951:5)
    at _runTestsForDescribeBlock (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:839:13)
    at _runTestsForDescribeBlock (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:829:11)
    at run (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:757:3)
    at runAndTransformResultsToJestFormat (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:1920:21)
    at jestAdapter (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/runner.js:101:19)
    at runTestInternal (.../sentry/node_modules/.pnpm/[email protected]..../jest-runner/build/testWorker.js:272:16)
    at runTest (.../sentry/node_modules/.pnpm/[email protected]..../jest-runner/build/testWorker.js:340:7)
    at Object.worker (.../sentry/node_modules/.pnpm/[email protected]..../jest-runner/build/testWorker.js:494:12)
PrimaryNavigationServiceIncidents should not show anything if there are no incidents
Stack Traces | 1.02s 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.

[MSW] Error: intercepted a request without a matching request handler:

  • GET https://sentry.status.sentry..../v2/incidents/unresolved.json

If you still wish to intercept this unhandled request, please create a request handler for it.
Read more: https://mswjs..../docs/http/intercepting-requests
    at console.captureMessage [as error] (.../sentry/node_modules/.pnpm/[email protected]..../node_modules/jest-fail-on-console/index.js:83:25)
    at Object.error (.../sentry/node_modules/.pnpm/[email protected]_@[email protected][email protected]..../utils/internal/devUtils.ts:24:11)
    at applyStrategy (.../sentry/node_modules/.pnpm/[email protected]_@[email protected][email protected]..../utils/request/onUnhandledRequest.ts:39:18)
    at error (.../tests/js/setupMsw.ts:17:13)
    at onUnhandledRequest (.../sentry/node_modules/.pnpm/[email protected]_@[email protected][email protected]..../utils/request/onUnhandledRequest.ts:68:5)
    at handleRequest (.../sentry/node_modules/.pnpm/[email protected]_@[email protected][email protected]..../core/utils/handleRequest.ts:79:11)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _Emitter.<anonymous> (.../sentry/node_modules/.pnpm/[email protected]_@[email protected][email protected]..../src/node/SetupServerCommonApi.ts:60:26)
    at emitAsync (.../sentry/node_modules/.pnpm/@[email protected]/node_modules/@.../src/utils/emitAsync.ts:23:5)
    at .../sentry/node_modules/.pnpm/@[email protected]/node_modules/@.../src/utils/handleRequest.ts:123:5
    at until (.../sentry/node_modules/.pnpm/@[email protected]/node_modules/@.../until/src/until.ts:23:18)
    at handleRequest (.../sentry/node_modules/.pnpm/@[email protected]/node_modules/@.../src/utils/handleRequest.ts:112:18)
    at globalThis.fetch (.../sentry/node_modules/.pnpm/@[email protected]/node_modules/@.../interceptors/fetch/index.ts:185:7)
    at queryFn (.../app/utils/useServiceIncidents.tsx:46:16)
    at flushUnexpectedConsoleCalls (.../sentry/node_modules/.pnpm/[email protected]..../node_modules/jest-fail-on-console/index.js:48:13)
    at Object.<anonymous> (.../sentry/node_modules/.pnpm/[email protected]..../node_modules/jest-fail-on-console/index.js:145:7)
    at Promise.finally.completed (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:1559:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:1499:10)
    at _callCircusHook (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:978:40)
    at _runTest (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:951:5)
    at _runTestsForDescribeBlock (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:839:13)
    at _runTestsForDescribeBlock (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:829:11)
    at run (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:757:3)
    at runAndTransformResultsToJestFormat (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:1920:21)
    at jestAdapter (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/runner.js:101:19)
    at runTestInternal (.../sentry/node_modules/.pnpm/[email protected]..../jest-runner/build/testWorker.js:272:16)
    at runTest (.../sentry/node_modules/.pnpm/[email protected]..../jest-runner/build/testWorker.js:340:7)
    at Object.worker (.../sentry/node_modules/.pnpm/[email protected]..../jest-runner/build/testWorker.js:494:12)

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

because we now hav passthrough() events that also get logged with request:start
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.

2 participants