Skip to content

fix(batch): fail a step without expect on a 4xx or 5xx - #133

Merged
yusukebe merged 1 commit into
nextfrom
fix/batch-default-pass
Sep 18, 2026
Merged

yusukebe merged 1 commit into
nextfrom
fix/batch-default-pass

Conversation

@yusukebe

Copy link
Copy Markdown
Member

A batch line without `expect` passed on any status, so a 500 counted as `pass: true` and the summary said `failed: 0`. The Agent DX team hit this while preparing the D1 A/B for next.8: on next.7 `/users` returns a 500 and the tool reported it as working.

Now a step without `expect` passes on a 2xx or 3xx and fails on a 4xx or 5xx, with a `diff` line that says how to accept one on purpose (`expect.status`). The 404 `--trace` suggestion applies there too. README, agent-context notes, and the Agent DX log are updated.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • pnpm run format:fix && pnpm run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

@yusukebe
yusukebe merged commit 59956f2 into next Sep 18, 2026
4 checks passed
@yusukebe
yusukebe deleted the fix/batch-default-pass branch September 18, 2026 01:44
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