OpenFn / OpenFn/kit-lightning-integration

testing: add richer assertions

Open
#10 0 comments 0 reactions 0 assignees View on GitHub

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 steplightning.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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.