v0.2 Phase 8: full release gate — all checks green
cargo fmt --check ✓ cargo clippy --workspace --all-targets -- -D warnings ✓ cargo test --workspace ✓ cargo nextest run --workspace ✓ 435/435 npm run check ✓ 0/0/5704 files npm test ✓ 13/13 (2 files) npm run test:browser ✓ 3/3 in Chromium npm run test:e2e ✓ 16/16 × 2 viewports npm run analyze ✓ reports/bundle-stats.html (1.7 MB) scripts/dogfood-rebrand-drill.sh ✓ 8/8 (sandbox) npm run guard:no-skeleton ✓ clean Two small Phase 8 corrections landed alongside the gate: vite.config.js: the jsdom suite was picking up `src/lib/ui/*.browser.test.ts`, which only works under the @vitest/browser-playwright provider. Added the browser-suffix glob to the jsdom suite's exclude list so the two runners stop double-running the same files. playwright.config.ts: bumped the global `expect.timeout` to 15 s. The cold first-compile of the Vite SPA tree was exceeding Playwright's default 5 s `toBeVisible` timeout on the 900x700 project on dogfood runs. The 1440x900 project (which runs second after a warm cache) never hit it. Phase 8 closes Phase-7 page migrations. Branch is ready for the finishing-a-development-branch handoff. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -53,8 +53,17 @@ export default defineConfig(async () => ({
|
||||
// #[cfg(test)] sibling convention; no separate tests/ tree.
|
||||
include: ["src/**/*.{test,spec}.{ts,js}"],
|
||||
// Frontend tests must never reach into the Tauri backend; that surface
|
||||
// is owned by `cargo test` in src-tauri/ and crates/.
|
||||
exclude: ["src-tauri/**", "node_modules/**", "build/**", ".svelte-kit/**"],
|
||||
// is owned by `cargo test` in src-tauri/ and crates/. v0.2 browser-mode
|
||||
// component tests live under *.browser.{test,spec}.{ts,js,svelte} and
|
||||
// are run by `npm run test:browser` against vitest.browser.config.js —
|
||||
// exclude them from this jsdom suite so they don't double-run.
|
||||
exclude: [
|
||||
"src-tauri/**",
|
||||
"node_modules/**",
|
||||
"build/**",
|
||||
".svelte-kit/**",
|
||||
"src/**/*.browser.{test,spec}.{ts,js,svelte}",
|
||||
],
|
||||
// Restore a clean global state between tests — vitest's restoreMocks
|
||||
// unwinds vi.spyOn / vi.fn, clearMocks resets call history, and
|
||||
// unstubAllGlobals undoes vi.stubGlobal. Prevents accidental leakage
|
||||
|
||||
Reference in New Issue
Block a user