Repository navigation
docs(angular): update testing guide for Vitest and Playwright - #4806
Draft
brandyscarney wants to merge 1 commit into
Draft
brandyscarney wants to merge 1 commit into
brandyscarney wants to merge 1 commit into
Conversation
brandyscarney
added this pull request to stack #4807
October 23, 2026 20:14
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
brandyscarney
force-pushed
the
FW-7709-angular-testing
branch
from
October 23, 2026 20:23
f8546d9 to
142307c
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
Rewrites the Angular testing guide for the tools Angular apps from
ionic startnow use: Vitest for unit tests and Playwright for end-to-end tests. The guide still described Jasmine, Karma, and Protractor.New Behavior
The Angular testing guide now:
test,test:unit,test:unit:watch,test:e2e) and the test setup files (src/test-setup.ts,vitest.config.mts).vi.fn(),vi.spyOn()) instead of Jasmine spies.inject(), andHttpClientwithprovideHttpClient()andprovideHttpClientTesting().e2e/folder, page objects, test environment, cleanup).Changes
@angular/build:unit-test) and Playwright setup, with a scripts table and a note to runnpx playwright install. Links now point to angular.dev.vi.fn()andvi.spyOn().ionic generate pagenow creates, and how to fix the generated files' lint errors.TestBedexample with providers.@ionic/angularis the custom elements build, and only@ionic/angular/lazyhasel.componentOnReady(). The wording now matches the React and Vue pages.TestBed.injectwith a mocked dependency, plus avi.spyOnalternative that relies onprovidedIn: 'root'.provideHttpClient(),provideHttpClientTesting(), andTestBed.inject. These replaceHttpClientTestingModuleand the removedTestBed.get.toBeEqual, which isn't a real matcher, totoBe.tabsstarter.filter({ visible: true }).e2eAngular configuration served on port 4300, so Playwright never reuses a running dev server.Notes