Skip to content

T · Testing

Every Relay module ships with tests: the retry policy, the state machine, the payload parser. Tests are types too.

# Lesson
1 bun test: structure, mocks and spies
2 Type tests: Equal, Expect and @ts-expect-error
3 Property-based tests with fast-check
4 Fakes over monkey-patching, and contract tests
5 Testing time and retries

Some exercises run in the browser; others need real Bun or real files and run in your own project with bun test. Each lesson says which.