|
Ran
|
Jobs
1
|
Files
35
|
Run time
26min
|
Badge
README BADGES
|
push
github
🌐 feat: Include lang attribute on page (#213) * Add generic "home" page with language support * Set lang attribute on page The route param is the source of truth; see routes.ts and how home.tsx consumes it via params * Remove hard-coded language pages * Quit loading Spanish for English I have no idea how this bug lasted so long * Stop testing alert copy * Always keep state in sync with props * Listen for wrongLanguage changes via useEffect hook * Remove the language alert when not needed * Manage language alert via state * Confirm language is handled correctly * Revert "Confirm language is handled correctly" This reverts commit ad8f2d5a3. * Confirm the HTML tag has the right lang * Prerender with languages as params * Confirm language alert text doesn't change when dismissing * Render HTML tag with correct lang attribute * Tell what language the alert uses * Manage language alert display at parent * Wait for animation to conclude The value doesn't actually update until then * Don't lint React Router's built files * Don't default to watch mode when testing * Resolve ESLint warnings * Share type def with test
146 of 172 branches covered (84.88%)
Branch coverage included in aggregate %.
82 of 135 new or added lines in 9 files covered. (60.74%)
2797 of 2981 relevant lines covered (93.83%)
41.45 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
0.0 |
0.0% | src/routes.ts |
| 2 |
94.55 |
-5.45% | src/utils/supported-languages.ts |
| 3 |
94.67 |
-1.8% | src/components/language-alert/language-alert.tsx |
| 3 |
0.0 |
0.0% | src/pages/catchall.tsx |
| 5 |
0.0 |
0.0% | src/root.tsx |
| 39 |
0.0 |
src/pages/home.tsx |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 18477604243.1 | 35 |
93.34 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|