Ir al contenido
Español

TestKitOptionsType

Esta página aún no está disponible en tu idioma.

Defined in: src/testkit/TestKitOptions.ts:5

Plain options-object shape accepted by TestKit.create.

readonly optional config?: ConfigObject | Config

Defined in: src/ActorSystemOptions.ts:38

Application config. Accepts:

  • a prebuilt Config (highest precedence layered on top of reference);
  • a plain JS object of overrides (converted via Config.fromObject);
  • omitted — reference defaults + application.conf in CWD are used. Constructor options (logger, logLevel, dispatcher) still win over anything in config — they are explicit code overrides.

ActorSystemOptionsType.config


readonly optional configFile?: string

Defined in: src/ActorSystemOptions.ts:40

Explicit path to application.conf; overrides ACTOR_TS_CONFIG + CWD lookup.

ActorSystemOptionsType.configFile


readonly optional dispatcher?: Dispatcher

Defined in: src/ActorSystemOptions.ts:27

ActorSystemOptionsType.dispatcher


readonly optional logger?: Logger

Defined in: src/ActorSystemOptions.ts:25

ActorSystemOptionsType.logger


readonly optional logLevel?: LogLevel

Defined in: src/ActorSystemOptions.ts:26

ActorSystemOptionsType.logLevel


readonly optional persistence?: object

Defined in: src/ActorSystemOptions.ts:52

Persistence overrides — wire a real journal / snapshot store at system creation time instead of reaching into the extension after the fact. Either field is independent; omit one to keep the in-memory default for that slot.

Equivalent to: const sys = ActorSystem.create(name); sys.extension(PersistenceExtensionId).setJournal(journal); sys.extension(PersistenceExtensionId).setSnapshotStore(snapshotStore);

readonly optional journal?: Journal

readonly optional snapshotStore?: SnapshotStore

ActorSystemOptionsType.persistence


readonly optional quiet?: boolean

Defined in: src/testkit/TestKitOptions.ts:7

When true, install a NoopLogger if the caller didn’t provide one.


readonly optional scheduler?: Scheduler

Defined in: src/ActorSystemOptions.ts:29

Inject a custom scheduler — typically a ManualScheduler in tests.

ActorSystemOptionsType.scheduler