API reference@evolu/nodejsTestBundle › TestBundleOptions

Defined in: packages/nodejs/src/TestBundle.ts:115

Options for producing and verifying equivalent bundles.

Properties

aliases?

readonly optional aliases?: Readonly<Record<string, string>>;

Defined in: packages/nodejs/src/TestBundle.ts:122

Package aliases resolved for every case and bundler. Targets must be absolute paths to modules using JavaScript syntax.


bundlingTimeout?

readonly optional bundlingTimeout?: PositiveDuration;

Defined in: packages/nodejs/src/TestBundle.ts:129

Maximum duration for producing each bundle. Defaults to "30s".


cases

readonly cases: ReadonlyRecord<string, TestBundleCase>;

Defined in: packages/nodejs/src/TestBundle.ts:117

Named cases bundled with every supported bundler.


outputDirectory?

readonly optional outputDirectory?: string;

Defined in: packages/nodejs/src/TestBundle.ts:127

Copies emitted bundles into this directory for later inspection. Relative paths are resolved from the current working directory.


timeout?

readonly optional timeout?: PositiveDuration;

Defined in: packages/nodejs/src/TestBundle.ts:131

Maximum duration for executing each emitted bundle. Defaults to "5s".