Skip to content

wip: unit testing docs - #841

Draft
mtuchi wants to merge 1 commit into
mainfrom
unit-testing
Draft

wip: unit testing docs#841
mtuchi wants to merge 1 commit into
mainfrom
unit-testing

Conversation

@mtuchi

@mtuchi mtuchi commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Short Description

Adds a new docs page, "Writing unit tests for your jobs", covering how to compile job code with openfn compile --exports-only and test the helper functions with a standard JavaScript test runner. Cross-linked from the job writing guide and the two CLI pages.

Closes #840

Details

What's here

  • New page docs/jobs/unit-testing-jobs.md, added to the sidebar under Write Jobs, after jobs/compilation
  • docs/jobs/job-writing-guide.md picks up a short "your helpers can be unit tested" pointer in Next Steps
  • docs/build-for-developers/cli-intro.md gains a bullet in the "you can use the OpenFn CLI to..." list
  • docs/build-for-developers/cli-usage.md gains a "Compile job code for unit testing" section

AI Usage

  • I have used Claude Code
  • I have used another model
  • I have not used AI

You can read more details in our
Responsible AI Policy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

add a guide on unit testing job code

1 participant