Skip to content

feat(@schematics/angular): stabilize refactor-jasmine-vitest schematic#32874

Draft
hawkgs wants to merge 1 commit intoangular:mainfrom
hawkgs:refactor-jasmine-vitest-stable
Draft

feat(@schematics/angular): stabilize refactor-jasmine-vitest schematic#32874
hawkgs wants to merge 1 commit intoangular:mainfrom
hawkgs:refactor-jasmine-vitest-stable

Conversation

@hawkgs
Copy link
Copy Markdown
Member

@hawkgs hawkgs commented Mar 27, 2026

Stabilize refactor-jasmine-vitest schematic by covering the known remaining test patterns and cases.

The current state of the schematic covers the most common and used test patterns. This PR adds rather peripheral API to the list of supported transformations. Most of these do not have a Vitest equivalent.

API State
jasmine.createSpy('withName') ✅ Added support
spy.calls.thisFor(index) ✅ Added support
spy.calls.saveArgumentsByValue() 🚧 Not supported; Comment added
spy.and.identity() ✅ Added support
.and.returnValue(Promise.resolve(x)) / .and.returnValue(Promise.reject(x)) ✅ Added support
fail(new Error()) ✅ Added support
jasmine.clock().withMock() 🚧 Not supported; Comment added
jasmine.clock().autoTick() 🚧 Not supported; Comment added
jasmine.addAsyncMatchers() 🚧 Not supported; Comment added
jasmine.addSpyStrategy() 🚧 Not supported; Comment added
jasmine.addCustomObjectFormatter() 🚧 Not supported; Comment added
toBeNullish() ✅ Added support
throwUnless() / throwUnlessAsync() 🚧 Not supported; Comment added
getSpecProperty() 🚧 Not supported; Comment added
jasmine.MAX_PRETTY_PRINT_DEPTH / MAX_PRETTY_PRINT_CHARS / MAX_PRETTY_PRINT_ARRAY_LENGTH 🚧 Not supported; Comment added

Stabilize `refactor-jasmine-vitest` schematic by covering the known remaining test patterns and cases.
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant