Functional suite · 8 checks

Follow the message lifecycle.

Functional checks isolate each public API lifecycle: create, load, serialize, recover from invalid input, and continue.

js-message works with bundlers and without a bundler.

Bundlers resolve the bare js-message import normally. Native browser ESM resolves it through a standard import map, with no build or transpilation step.

Construction and loading

IDFocused check
FUNC-01The constructor parses JSON text.
FUNC-02load() preserves nested values and ignores extra keys.
FUNC-03load() preserves an object data reference.
FUNC-04The constructor preserves an object data reference.
FUNC-05A serialized message round-trips through the constructor.

Error recovery

IDFocused check
FUNC-06Malformed JSON becomes a recoverable error envelope.
FUNC-07Malformed errors remain informative after serialization.
FUNC-08A message recovers after a failed load.
One public lifecycle at a time.

Complete consumer journeys live in the Behavioral suite. Edge cases kept for historical compatibility live on the Regression page.