Migrate Jasmine types to Vitest
ProprietaryRewrites the jasmine namespace's types in Angular tests: jasmine.Spy becomes Vitest's Mock and jasmine.SpyObj<T> its MockedObject<T>, both imported with import type from vitest; jasmine.Any becomes any, jasmine.ObjectContaining<T> becomes Partial<T> (object without a type argument), and jasmine.DoneFn becomes () => void. A /// <reference> to the Jasmine types is removed.
org. openrewrite. angular. migration. migrate-jasmine-types-to-vitestmod run . --recipe= org. openrewrite. angular. migration. migrate-jasmine-types-to-vitestInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.