Skip to main content

provideMockService

Creates auto-spied mocks for Angular services and providers. Replaces all methods with Vitest spies while preserving type signatures.

TypeScriptexample.ts
import { provideMockService } from '@angular-helpers/testing'
LCP N/A
CLS N/A
INP N/A