Skip to content

Conversation

@smilkuri
Copy link
Contributor

@smilkuri smilkuri commented Dec 3, 2025

Issue

Issue number, if available, prefixed with "#"

Description

What does this implement/fix? Explain your changes.

Testing

How was this change tested?

Additional context

Add any other context about the PR here.

Checklist

  • If the PR is a feature, add integration tests (*.integ.spec.ts).
  • If you wrote E2E tests, are they resilient to concurrent I/O?
  • If adding new public functions, did you add the @public tag and enable doc generation on the package?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

"extract:docs": "api-extractor run --local",
"generate:client": "node ../../scripts/generate-clients/single-service --solo acm"
"generate:client": "node ../../scripts/generate-clients/single-service --solo acm",
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include a test:e2e:watch script counterpart for all test scripts


expect(result).toBeDefined();
expect(result.CertificateSummaryList).toBeDefined();
expect(Array.isArray(result.CertificateSummaryList)).toBe(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for a triple chain of assertions, since the third one covers all 3


expect(result).toBeDefined();
expect(result.items).toBeDefined();
expect(Array.isArray(result.items)).toBe(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only need one assertion

});

describe("Describing stacks", () => {
it("should return stacks list when describing stacks is called", async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DescribeStacks is the operation name, not describing stacks

for await (const page of paginator) {
pageCount++;
lastPage = page;
if (pageCount >= 3) break; // Get at least three pages
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test doesn't match the original test

"the last page must not contain a marker" i'm guessing this refers to the pagination token

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes you are right.

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