API reference@evolu/nodejs › TestBundle

Node.js utilities for testing production bundles.

These utilities use the dedicated @evolu/nodejs/TestBundle entry point so normal @evolu/nodejs imports do not evaluate the test toolchain, while bundle tests do not evaluate unrelated Evolu Node.js adapters.

The testBundle function loads its optional Webpack and Vite peer dependencies only when called.

Interfaces

InterfaceDescription
TestBundleThe measured output supplied to TestBundleCase.verify.
TestBundleCaseOne named bundle test case.
TestBundleOptionsOptions for producing and verifying equivalent bundles.
TestBundleSizeThe measured sizes of one bundle.

Type Aliases

Type AliasDescription
TestBundleCaseResultBundle sizes keyed by bundler name and version.
TestBundleResultCase results keyed by case name for size snapshots.

Functions

FunctionDescription
testBundleBundles, executes, measures, and verifies named cases with every supported bundler.