Skip to main content
Version: v0.0.5

Function: defineSynthProfile()

defineSynthProfile(spec): SynthProfile

Define a reusable, frozen synthetic-fixture profile.

Parameters

spec

SynthProfileSpec

The profile spec; name is required and non-empty.

Returns

SynthProfile

A deep-frozen SynthProfile.

Throws

SynthError SYNTH_INVALID_PROFILE when name is missing or blank.

Example

import { defineSynthProfile } from "@cosyte/synth";
const acme = defineSynthProfile({ name: "acme-hospital", quirks: [] });