Scenario test file
A scenario test file walks the Startup end to end with test keys, as a buyer who orders, pays and accepts would.
| Property | Value |
|---|---|
| Path | tests/ |
| Holds | Startup |
| Kind | file |
| Leaders | db-first, git-first |
| Team | Quality Team |
| Written by | None. |
| Compiled by | StartupBuilder |
Example
tests/ in a Startup repository.
import { clock, expect, test, walk } from 'startup-builder/ test'
test('an agency that subscribes gets its first month closed', async () => {
const agency = await walk('client')
await agency.subscribe('monthly-close')
await agency.import('mappings/ bank-statement', 'fixtures/ september.csv')
await clock.advance('5 days')
expect(await agency.inbox()).toContainMessage('Your books for 2026-09 are closed')
})