Skip to content

Verb fixtures

Verb fixtures sit beside a Verb Function and hold the cases it must pass before its Change merges.

PropertyValue
Pathnouns/[Noun].[verb].test.ts
HoldsFunction
Kindfile
Leadersdb-first, git-first
TeamQuality Team
Written byChange.merge
Compiled bySoftwareBuilder

Example

nouns/Close.reconcile.test.ts in a Startup repository. Closewise, a sample business, declares a Close Noun.

nouns/Close.reconcile.test.ts
import { expect, run, test } from 'startup-builder/test'

test('a matched month is balanced', async () => {
  const { result } = await run({ client: 'cus_1', period: '2026-09' }, { Close: { entries: () => [{ matched: true }] } })
  expect(result.balanced).toBe(true)
})

Generates

SoftwareBuilder compiles it into these records, Verbs and routes.

KindWhat
RecordsChange
VerbsNone.
RoutesNone.