Repository navigation
v1.0.26 — One file for writing workflow tests
An agent writing a workflow test now finds everything it needs in one doc file. llms/tests.md carries the workflowTest() shape, how to register it, the s.expect.* argument shape, and the calls that only run inside a workflow test. Agents used to grep three other files for these.
npm install @xano/sdk@1.0.26One file covers writing a workflowTest()
llms/tests.md now owns workflow tests from start to finish. The workflowTest() shape and its datasource caveat moved there from llms/kinds-core.md. The signatures of s.api.call, s.task.call, s.trigger.call and s.workflow_test.call, which only run in a workflow test, moved there from llms/statements-calls.md. The old locations keep a one-line pointer, and the object-kinds.md entry for workflow tests points to the new file.
Registration and the s.expect.* argument shape are documented
Register a workflow test with .registerWorkflowTests([...]). export() fails with reference.unresolved when s.workflow_test.call targets one that is not registered. s.expect.* takes one argument object: { expr }, { expr, value }, { expr, min, max } for to_be_within, and { body, exception? } for to_throw.
Notes
The topic file is now titled "Tests, assertions, and mocks". No API changes.