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.
| Property | Value |
|---|---|
| Path | agents/ |
| Holds | Role |
| Kind | file |
| Leaders | db-first, git-first |
| Team | Quality Team |
| Written by | None. |
| Compiled by | StartupBuilder |
Example
agents/ in a Startup repository. Closewise, a sample business, declares a Close Noun.
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')
})