Repository navigation
chore(test): run unit tests with vitest and add playwright e2e tests - #75
Open
brandyscarney wants to merge 3 commits into
Open
brandyscarney wants to merge 3 commits into
brandyscarney wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
brandyscarney
force-pushed
the
chore/add-test-infrastructure
branch
from
October 23, 2026 19:16
f337312 to
87cf706
Compare
This was referenced Oct 23, 2026
This branch was successfully deployed
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.
What This Does
Replaces Cypress with Playwright for end-to-end tests, aligns the Vitest unit test setup with the other apps, and runs both in CI.
New Behavior
npm run test:unitruns the unit tests once (Vitest).npm run test:unit:watchreruns them on changes.npm run test:e2eruns the Playwright tests in Mobile Chrome (Pixel 7). It starts the dev server on port 4313, a port reserved for this app's e2e tests so it never reuses another app's server. The first time, install the browser withnpx playwright install chromium.npm testruns both.Changes
e2e/: the first tab loads, and the tab bar opens the photo gallery.@testing-library/jest-dom/vitest). The unused@testing-library/user-eventis removed.vitestinstead of relying on globals, and the setup calls Testing Library'scleanup()after each test (it only does that automatically with globals). ThematchMediastub implements the full API.src/.test.unit/test.e2etotest:unit/test:e2e.npm run test:unit, and the new E2E job runsnpm run test:e2e.renovate.json: the testing group covers Vitest, jsdom, and Playwright.Notes