Repository navigation
test(app): raise DashboardFiltersModal test timeout to 15s - #3841
brandon-pereira wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🔵 Tier 2 — Low RiskSmall, isolated change with no API route or data model modifications. Why this tier:
Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns. Stats
|
Duplicate code analysisNo new duplicate code introduced by this PR. jscpd compared this branch against |
PR Review✅ No issues found. |
Deep Review✅ No critical issues found. This is a one-line, test-only change: a module-scope No P2 recommendations. Reviewers (4): correctness, testing, maintainability, project-standards. Testing gaps: The file-wide timeout raises the fail-fast ceiling for every test in the file, not just the slow first render — a future hang or perf regression in any later test now takes up to 15s to surface instead of 5s. Acceptable and consistent with the established convention; worth keeping in mind if more tests are added to this file. |
E2E Test Results✅ All tests passed • 477 passed • 1 skipped • 1137s
Tests ran across 4 shards in parallel. |
Summary
The first
DashboardFiltersModalunit test intermittently hit Jest's 5s timeout on busy CI runners. It renders the Mantine modal and Combobox for the first time and types a name character by character, so the suite pays a one-time setup cost the other tests don't. No assertion or logic was failing.Raise the file's timeout to 15s with
jest.setTimeout(15_000), matching the pattern used by other slow UI test files. No test logic changed.Test plan
yarn ci:unit src/components/DashboardFiltersModal/__tests__/DashboardFiltersModal.test.tsx— 26 tests pass. Running one file with--coveragestill reports the expected repo-wide coverage threshold failures;--coverage=falseexits clean.yarn lint:fix— passes.No changeset: test-only change.
Note
Low Risk
Test-only configuration change with no production or behavioral impact.
Overview
Raises the Jest timeout for
DashboardFiltersModal.test.tsxto 15 seconds viajest.setTimeout(15_000), with a short comment noting why.The change addresses intermittent CI failures on the first test in the file, which cold-starts Mantine modal/Combobox rendering and types input character-by-character—work that can exceed Jest’s default 5s limit on a loaded runner. No test assertions or product logic are modified, aligning with other slow UI suites in
packages/appthat use elevated timeouts.Reviewed by Cursor Bugbot for commit b022011. Bugbot is set up for automated code reviews on this repo. Configure here.