Repository navigation
chore(test): run unit tests with vitest and add playwright e2e tests - #108
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
f7d4078 to
8a3b214
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
Moves the unit tests from Karma and Jasmine to Vitest, adds Playwright end-to-end tests, and runs both in CI.
New Behavior
npm run test:unitruns the unit tests once (Vitest, through Angular's@angular/build:unit-testbuilder).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 4311, 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.@angular/build:unit-test. The 7 existing specs needed no changes (Angular'srefactor-jasmine-vitestschematic found nothing to convert).vitest.config.mtsturns off Vitest's file-system module cache (see Notes).@angular/buildsupports it.npm run test:unit, and the new E2E job runsnpm run test:e2e.renovate.json: the testing group covers Vitest, jsdom, and Playwright.Notes
.mtsbecause the package is CommonJS.