Repository navigation
chore(test): run unit tests with vitest and add playwright e2e tests - #186
Open
brandyscarney wants to merge 11 commits into
Open
brandyscarney wants to merge 11 commits into
brandyscarney wants to merge 11 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 17:40
34655d3 to
fec7c98
Compare
brandyscarney
force-pushed
the
chore/add-test-infrastructure
branch
from
October 23, 2026 19:17
bddbfe5 to
2d00ae8
Compare
brandyscarney
force-pushed
the
chore/add-test-infrastructure
branch
from
November 9, 2026 21:30
352617f to
04f0fab
Compare
brandyscarney
force-pushed
the
chore/add-test-infrastructure
branch
from
November 11, 2026 20:23
32cebfc to
e3ecfbc
Compare
brandyscarney
force-pushed
the
chore/add-test-infrastructure
branch
from
November 11, 2026 20:27
e3ecfbc to
e28aa24
Compare
brandyscarney
force-pushed
the
chore/add-test-infrastructure
branch
from
November 11, 2026 20:40
e28aa24 to
a8aa35d
Compare
brandyscarney
force-pushed
the
chore/add-test-infrastructure
branch
from
November 11, 2026 20:54
a8aa35d to
11a1330
Compare
brandyscarney
force-pushed
the
chore/add-test-infrastructure
branch
from
November 11, 2026 21:06
bd02a6e to
4d572c8
Compare
…update @types/node
brandyscarney
force-pushed
the
chore/add-test-infrastructure
branch
from
November 11, 2026 21:43
4d572c8 to
f8bcee9
Compare
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
Sets up Vitest for the unit tests, adds Playwright end-to-end tests, runs both in CI, and removes unused dependencies.
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 4314, 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.npm run lintalso type-checks the Playwright tests andplaywright.config.ts. Playwright and ESLint don't type-check on their own, so a type error in an e2e spec would otherwise pass both lint and the e2e run.Changes
e2e/: the first visit shows the tutorial, and Skip opens the schedule.@testing-library/jest-dom/vitest). Removes@types/jest.src/setupTests.tscleans up Testing Library renders after each test and stubsmatchMediaandscrollTo, which jsdom doesn't implement.src/, and ESLint ignores Playwright's output folders.tsconfig.e2e.jsonand atypecheck:e2escript (tsc -p tsconfig.e2e.json), run fromlintbefore Prettier.@types/node26 as a dev dependency (forprocess.envinplaywright.config.ts).react-app-env.d.ts, a leftover Create React App reference toreact-scripts, withvite-env.d.tsreferencingvite/client, like the React tutorial app.react-redux,@types/react-redux, andreact-leaflet.npm run test:unit, and the new E2E job runsnpm run test:e2e, with Node from.nvmrc.renovate.json: the testing group covers Testing Library, Vitest, jsdom, and Playwright.CONTRIBUTING.md, listed in its table of contents.localStorageafter each test, since Capacitor Preferences stores its data there on the web. The app test finds its data files relative to the test file instead of the working directory.Notes