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
| Interface | Description |
|---|---|
| TestBundle | The measured output supplied to TestBundleCase.verify. |
| TestBundleCase | One named bundle test case. |
| TestBundleOptions | Options for producing and verifying equivalent bundles. |
| TestBundleSize | The measured sizes of one bundle. |
Type Aliases
| Type Alias | Description |
|---|---|
| TestBundleCaseResult | Bundle sizes keyed by bundler name and version. |
| TestBundleResult | Case results keyed by case name for size snapshots. |
Functions
| Function | Description |
|---|---|
| testBundle | Bundles, executes, measures, and verifies named cases with every supported bundler. |