method MockServiceRegistry.prototype.registrations
MockServiceRegistry.prototype.registrations(): ReadonlyArray<{ token: string; multi: boolean; }>

Records every register/registerFactory call, in order.

Exposed as a ReadonlyArray so a test can assert against the recording without being able to rewrite it; #record is the mutable backing store.

Return Type

ReadonlyArray<{ token: string; multi: boolean; }>

Usage

import { MockServiceRegistry } from "testing/src/index.ts";