Skip to content

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Sep 17, 2025

Issue

n/a

Description

normalize import of the integration test mocking tool.

Testing

let CI run

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.

@kuhe kuhe requested a review from a team as a code owner September 17, 2025 15:36
import { describe, expect, test as it } from "vitest";

import { requireRequestsFrom } from "../../../../private/aws-util-test/src";
import { requireRequestsFrom } from "@aws-sdk/aws-util-test/src";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@aws-sdk/aws-util-test/src with the /src part is preferred for this specific package because there are vitest function calls in the module.

Importing with @aws-sdk/aws-util-test instead imports the built version of the library, which is incompatible with vitest (CJS).

@kuhe kuhe merged commit 8c20c06 into main Sep 17, 2025
6 checks passed
@kuhe kuhe deleted the fix/changesets branch September 17, 2025 16:59
Copy link

github-actions bot commented Oct 2, 2025

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants