Standardize browser QA at 1920x1080

This commit is contained in:
2026-07-17 22:18:30 +09:00
parent eb41c05f60
commit 8f10d3d67b
29 changed files with 224 additions and 51 deletions

View File

@@ -1,12 +1,13 @@
import { readdirSync, readFileSync, statSync, writeFileSync } from 'node:fs';
import { join, sep } from 'node:path';
import { createServer } from 'vite';
import { desktopBrowserViewport } from './desktop-browser-viewport.mjs';
const battleMapDir = join('src', 'assets', 'images', 'battle');
const storyDir = join('src', 'assets', 'images', 'story');
const titleImagePath = join('src', 'assets', 'images', 'taoyuan-oath-title.png');
const reportPath = join('docs', 'visual-asset-quality-audit.md');
const targetViewport = { width: 1920, height: 1080 };
const targetViewport = desktopBrowserViewport;
const expectedStorySize = { width: 1672, height: 941 };
const server = await createServer({