From 29749519c263c711f91072eb0d42c5a05039e4aa Mon Sep 17 00:00:00 2001 From: kitsuyui Date: Thu, 4 Jun 2026 13:32:41 +0900 Subject: [PATCH] chore: rename tests/ to fixtures/ at repo root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- biome.json | 2 +- {tests/fixtures => fixtures}/html/test.html | 0 {tests/fixtures => fixtures}/images/test.gif | Bin {tests/fixtures => fixtures}/images/test.jpg | Bin {tests/fixtures => fixtures}/images/test.png | Bin {tests/fixtures => fixtures}/images/test.svg | 0 {tests/fixtures => fixtures}/images/test.webp | Bin {tests/fixtures => fixtures}/react/index.html | 0 {tests/fixtures => fixtures}/vue/index.html | 0 src/render/index.spec.ts | 8 ++++---- 10 files changed, 5 insertions(+), 5 deletions(-) rename {tests/fixtures => fixtures}/html/test.html (100%) rename {tests/fixtures => fixtures}/images/test.gif (100%) rename {tests/fixtures => fixtures}/images/test.jpg (100%) rename {tests/fixtures => fixtures}/images/test.png (100%) rename {tests/fixtures => fixtures}/images/test.svg (100%) rename {tests/fixtures => fixtures}/images/test.webp (100%) rename {tests/fixtures => fixtures}/react/index.html (100%) rename {tests/fixtures => fixtures}/vue/index.html (100%) diff --git a/biome.json b/biome.json index 8cdab0f1..435e133a 100644 --- a/biome.json +++ b/biome.json @@ -51,7 +51,7 @@ "!**/.venv", "!**/coverage", "!**/bun.lock", - "!tests/fixtures/react/index.html" + "!fixtures/react/index.html" ] } } diff --git a/tests/fixtures/html/test.html b/fixtures/html/test.html similarity index 100% rename from tests/fixtures/html/test.html rename to fixtures/html/test.html diff --git a/tests/fixtures/images/test.gif b/fixtures/images/test.gif similarity index 100% rename from tests/fixtures/images/test.gif rename to fixtures/images/test.gif diff --git a/tests/fixtures/images/test.jpg b/fixtures/images/test.jpg similarity index 100% rename from tests/fixtures/images/test.jpg rename to fixtures/images/test.jpg diff --git a/tests/fixtures/images/test.png b/fixtures/images/test.png similarity index 100% rename from tests/fixtures/images/test.png rename to fixtures/images/test.png diff --git a/tests/fixtures/images/test.svg b/fixtures/images/test.svg similarity index 100% rename from tests/fixtures/images/test.svg rename to fixtures/images/test.svg diff --git a/tests/fixtures/images/test.webp b/fixtures/images/test.webp similarity index 100% rename from tests/fixtures/images/test.webp rename to fixtures/images/test.webp diff --git a/tests/fixtures/react/index.html b/fixtures/react/index.html similarity index 100% rename from tests/fixtures/react/index.html rename to fixtures/react/index.html diff --git a/tests/fixtures/vue/index.html b/fixtures/vue/index.html similarity index 100% rename from tests/fixtures/vue/index.html rename to fixtures/vue/index.html diff --git a/src/render/index.spec.ts b/src/render/index.spec.ts index 5a2d94f4..c7e9c0a8 100644 --- a/src/render/index.spec.ts +++ b/src/render/index.spec.ts @@ -60,9 +60,9 @@ describe('getRenderedContent', () => { beforeAll(async () => { browser = await getBrowser() - reactServer = spawn('http-server', ['-p', '8001', 'tests/fixtures/react']) - vueServer = spawn('http-server', ['-p', '8002', 'tests/fixtures/vue']) - imageServer = spawn('http-server', ['-p', '8003', 'tests/fixtures/images']) + reactServer = spawn('http-server', ['-p', '8001', 'fixtures/react']) + vueServer = spawn('http-server', ['-p', '8002', 'fixtures/vue']) + imageServer = spawn('http-server', ['-p', '8003', 'fixtures/images']) await waitServerReady('http://localhost:8001/') await waitServerReady('http://localhost:8002/') await waitServerReady('http://localhost:8003/') @@ -168,7 +168,7 @@ describe('getRenderedContent with evaluates', () => { beforeAll(async () => { browser = await getBrowser() - htmlServer = spawn('http-server', ['-p', '8004', 'tests/fixtures/html']) + htmlServer = spawn('http-server', ['-p', '8004', 'fixtures/html']) await waitServerReady('http://localhost:8004/') }) afterAll(async () => {