Skip to content

add action output and replace it in assert#78

Open
fantazista wants to merge 1 commit intomainfrom
act-output
Open

add action output and replace it in assert#78
fantazista wants to merge 1 commit intomainfrom
act-output

Conversation

@fantazista
Copy link
Member

Runner (dtc/src/index.ts)

Tracks per-phase results in ctx.output (arrange, act, assert, clean).
Passes a 4th arg to plugins: output (same object), so assert can read output.act.
Export: export * from './domain.js' instead of export type *.
resolveOutputRefs (dtc/src/utils.ts)

Resolves @output.* strings against the given object (with output.data fallback).
Plugins

HTTP assert (http-call-plugin.ts): resolves assert args with resolveOutputRefs(..., output?.act) before checks.
RDS (rds-data-plugin.ts): same for assert; arrange/clean run statements sequentially; strip response before executeStatement.
Tests

index.test.ts: only assert first 3 mock args so the new 4th param does not break expectations.
Docs

README.md: build / test commands for the monorepo.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant