tcmts.server.test

noted (what: string) => Promise<void>
A job the tests enqueue.
notes string[]
What jobs in the tests ran with.
pantry Table<{ item: string; count: number; }>
A table the tests write to (in memory).
testRateLimitsAreDeliberateErrors () => void
Past its limit, a key is refused with a 429 saying when to try again, an error the runtime sends as it is.
testSchedulesAreChecked () => void
A schedule says what it runs and when; one the host can't run is refused where it's made.
testSessionsAndCookies () => Promise<void>
Sessions live on the server, by an id in a cookie; cookies go out with the answer.
testTablesCheckTheirRows () => Promise<void>
A table declared with the library's `table` knows its row type: rows are checked against it, found by their fields, updated atomically, and a duplicate of a unique field is a 409.
testTransactionsAreAllOrNothing () => Promise<void>
A transaction's writes all happen or none do; jobs it enqueues wait for its commit.