24
Reference

Testing and FAQ

Development commands, test focus areas, and quick answers.

Development commands

Terminal
bun install
bun run lint
bun run typecheck
bun run test
bun run build

Suggested coverage

  • named scopes (scopedRoutes, defaultScope, scopeParams)
  • scoped and non-scoped route compatibility
  • management filters and query serialization
  • submission upload mode parity
  • error normalization consistency

FAQ

Do I need scoped routes?

No. Non-scoped endpoints are supported.

Do I need to pass scope on every call?

No. Use defaultScope and only override per request when needed.

Can I filter forms by category server-side?

Yes, for example:

await management.listForms(false, {
  filters: {
    category: 'survey'
  }
})

Is owner resolved from headers in scoped mode?

In scoped mode, owner resolution should happen from route params on backend side.