OpenFn / OpenFn/kit-lightning-integration
testing: add richer assertions
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 10
Description
In tests I want to be able to:
- call a webhook and assert on the response (sync or async). Eg
lightning.workflow('x').respondWith(code, payload) - trigger a workflow and assert on the exist state
lightning.workflow('x').exitWith('success') - trigger a workflow and get the output for a step
lightning.workflow('x').output('step-a', expected) - trigger a workflow and get the final state
lightning.workflow('x').finalState('step-a', expected)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing integration-test helpers and the lightning.workflow entry point in this repository. Trace how workflows are triggered and how current assertions handle synchronous and asynchronous execution; done means the requested respondWith, exitWith, output, and finalState assertions work for the described cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100