Skip to content

test(aws-cdk): mock agent detection instead of clearing its env vars - #1966

Merged
9pace merged 2 commits into
mainfrom
mock-guess-agent-in-cli-tests
Sep 22, 2026
Merged

9pace merged 2 commits into
mainfrom
mock-guess-agent-in-cli-tests

Conversation

@9pace

@9pace 9pace commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

follow up #1855
Mock guessAgent() instead of a hardcoded copy of the env vars guessAgent() reads: these tests verify the guard in exec(), and detection has its own coverage in guess-agent.test.ts.

Checklist

  • This change contains a major version upgrade for a dependency and I confirm all breaking changes are addressed

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@aws-cdk-automation
aws-cdk-automation requested a review from a team September 14, 2026 21:11
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 14, 2026 21:15 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace deployed to run-tests September 22, 2026 13:53 — with GitHub Actions Active
@9pace
9pace added this pull request to the merge queue Sep 22, 2026
Merged via the queue into main with commit ca64124 Sep 22, 2026
50 checks passed
@9pace
9pace deleted the mock-guess-agent-in-cli-tests branch September 22, 2026 15:00

This branch had an error being deployed

1 failed (outdated) and 2 active deployments
run-tests — d4d7e7ec Deployed Sep 22, 2026 by 9pace via integ_init-templates (init-go, 24.19) #6972
no-approval — d4d7e7ec Deployed Sep 22, 2026 by 9pace via prepare #6972
automation — 96938b3f Deployed Sep 14, 2026 by 9pace via Set AutoQueue on PR #1966 #3543
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants