Skip to content

chore: rename tests/ to fixtures/ at repo root#1619

Closed
kitsuyui wants to merge 1 commit into
mainfrom
fix/audit-test-fixtures-misnamed-root-001
Closed

chore: rename tests/ to fixtures/ at repo root#1619
kitsuyui wants to merge 1 commit into
mainfrom
fix/audit-test-fixtures-misnamed-root-001

Conversation

@kitsuyui

@kitsuyui kitsuyui commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

The tests/ directory contained only static fixture files (HTML pages and images), not test code. All spec files are already co-located under src/ alongside the source they test.

Rename tests/fixtures/fixtures/ at the repo root so the directory name matches its actual content.

Changes

  • Rename tests/fixtures/{html,images,react,vue}fixtures/{html,images,react,vue} (8 files)
  • Update path references in src/render/index.spec.ts: tests/fixtures/*fixtures/*
  • Update Biome exclude pattern in biome.json: !tests/fixtures/react/index.html!fixtures/react/index.html

Verification

  • bun run lint (Biome): 30 files checked, no issues
  • bun run test: 9 test files, 35 tests — all passed
  • tsc --noEmit: 0 type errors

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

Code Metrics Report

main (29b12fb) #1619 (73c7869) +/-
Coverage 87.2% 87.2% 0.0%
Code to Test Ratio 1:0.5 1:0.5 0.0
Test Execution Time 6s 5s -1s
Details
  |                     | main (29b12fb) | #1619 (73c7869) | +/-  |
  |---------------------|----------------|-----------------|------|
  | Coverage            |          87.2% |           87.2% | 0.0% |
  |   Files             |             11 |              11 |    0 |
  |   Lines             |            141 |             141 |    0 |
  |   Covered           |            123 |             123 |    0 |
  | Code to Test Ratio  |          1:0.5 |           1:0.5 |  0.0 |
  |   Code              |           1146 |            1146 |    0 |
  |   Test              |            641 |             641 |    0 |
+ | Test Execution Time |             6s |              5s |  -1s |

Reported by octocov

The tests/ directory contained only static fixture files (HTML, images),
not test code. All spec files live under src/ and were already co-located
with the source they test.

Rename tests/fixtures/ → fixtures/ to match the directory's actual purpose.
Update all references in src/render/index.spec.ts and biome.json.
@kitsuyui
kitsuyui force-pushed the fix/audit-test-fixtures-misnamed-root-001 branch from 10d4bf6 to 2974951 Compare June 4, 2026 15:54
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

gh-counter

PR gate

Removed Added +/-
TODO/expect-error 0 0 0

Repo dashboard

main (29b12fb) #1619 (73c7869) +/-
TODO/expect-error 4 4 0

Reported by gh-counter

@kitsuyui

Copy link
Copy Markdown
Owner Author

Closing this stale structure-only rename because it now conflicts with current main and is not tied to a current maintenance need. If the layout still causes a concrete problem, it should be reconsidered from current main with fresh evidence.

@kitsuyui kitsuyui closed this Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant