Skip to content

Role test file

A Role test file holds the cases a Role’s Worker must get right; their verdicts raise or lower the Worker’s autonomy.

PropertyValue
Pathagents/[team]/[role].test.ts
HoldsRole
Kindfile
Leadersdb-first, git-first
TeamQuality Team
Written byNone.
Compiled byStartupBuilder

Example

agents/finance/controller.test.ts in a Startup repository. Closewise, a sample business, declares a Close Noun.

agents/finance/controller.test.ts
import { expect, run, test } from 'startup-builder/test'

test('never closes a month that does not tie out', async () => {
  const { calls } = await run({ close: 'close_9', difference: 120 })
  expect(calls).not.toContain('Close.close')
  expect(calls).toContain('Task.escalate')
})