Add Vitest + Playwright test harness, test DB lifecycle, and CI with flaky-test protections#12
Merged
DigitalHerencia merged 2 commits intoFeb 15, 2026
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
DigitalHerencia
deleted the
codex/configure-vitest-and-playwright-for-testing
branch
February 15, 2026 00:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
vitest.config.ts,tests/unit/*,tests/server/*,tests/setup/vitest.setup.ts) with coverage thresholds (lines/functions/statements ≥ 70%, branches ≥ 60%) and CI-friendly worker/retry settings.playwright.config.ts,tests/e2e/*) withforbidOnly, retries, trace-on-first-retry, screenshots/videos on failure, storage-state setup, and webServer orchestration for local/CI runs.db/test-db.ts,db/test/reset.sql,db/test/seed.sql) and npm scripts (test,test:e2e,test:db:*,test:ci) to reset/seed and prepare an isolated test DB usingTEST_DATABASE_URL..github/workflows/ci-tests.yml), updatedpackage.json/lockfiles for required dev dependencies (vitest,@vitest/coverage-v8,@playwright/test,tsx), and documented the testing strategy inREADME.md.Testing
npm run testand all Vitest suites passed with coverage gates enforced (unit/server tests green and configured thresholds met).npx playwright test --listwhich listed the configured E2E scenarios.npm run test:e2e) in this container but it is blocked by missing system libraries required by Playwright's headless Chromium (libatk-1.0.so.0) and occasional port collisions in the environment;npx playwright install chromiumwas run successfully to download browsers.Codex Task