Skip to content

add action output and replace it in assert#78

Merged
fantazista merged 3 commits intomainfrom
act-output
Mar 30, 2026
Merged

add action output and replace it in assert#78
fantazista merged 3 commits intomainfrom
act-output

Conversation

@fantazista
Copy link
Copy Markdown
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.

@fantazista fantazista force-pushed the act-output branch 3 times, most recently from db5eb21 to 6babc50 Compare March 27, 2026 16:49
Comment thread dtc/src/plugins/http-call-plugin.ts Outdated
@fantazista fantazista merged commit 6ae3c55 into main Mar 30, 2026
2 checks passed
@fantazista fantazista deleted the act-output branch March 30, 2026 12:07
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.

2 participants