Interface: InstrumentDOProjectConfig
Defined in: packages/testing/src/instrument-do-project.ts:8
Configuration for instrumenting a DO project
Properties
doClassNames?
optionaldoClassNames:string[]
Defined in: packages/testing/src/instrument-do-project.ts:19
Names of DO classes to instrument (must match exports from sourceModule) Optional - if not provided, will auto-detect class exports
Example
['MyDO', 'AnotherDO']
prefix?
optionalprefix:string
Defined in: packages/testing/src/instrument-do-project.ts:25
RPC prefix for routing
Default
'__rpc'
simulateAlarms?
optionalsimulateAlarms:boolean|AlarmSimulationConfig
Defined in: packages/testing/src/instrument-do-project.ts:40
Enable automatic alarm simulation for testing.
When enabled, alarms scheduled with ctx.storage.setAlarm() will fire automatically in tests without needing runDurableObjectAlarm().
Timing is sped up 100x by default (2s becomes 20ms, etc.)
Set to false to disable simulation (use manual runDurableObjectAlarm) or provide an AlarmSimulationConfig object to customize behavior.
Default
true (automatic simulation enabled)
sourceModule
sourceModule:
any
Defined in: packages/testing/src/instrument-do-project.ts:12
The module imported from '../src' containing the DO classes and default worker export