Import the Vitest globals a test uses
ProprietaryAdds import { describe, expect, it, vi, ... } from 'vitest' for the Vitest globals a test file calls and does not declare itself. Angular's unit-test builder runs Vitest with globals: true, so this is only needed where a project turned the globals off.
org. openrewrite. angular. migration. add-vitest-importsmod run . --recipe= org. openrewrite. angular. migration. add-vitest-importsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.