Skip to content

Conversation

@svozza
Copy link
Contributor

@svozza svozza commented Nov 14, 2025

Summary

This PR changes the end-to-end tests to remove the ESBuild banner that is added by default. This banner is only needed when we are consuming packages that only ship CommonJS arfifacts and bundling to ESM. For utilities that do not consume packaes like this we should not add this banner as it can lead to inadvertent breaking changes being missed such as: #4677.

Changes

  • Make the addition of the banner an explict parameter in CDK rather than being inferred from whether the package is ESM or not.
  • Update the only utility that needs this behaviour (Tracer) to run all it's tests in both CJS and ESM.
  • Note: The diff looks like more has changed that actually has because using describe.each to run the Tracer tests in both ESM and CJS format changed the indentation.

Testing

Issue number: closes #4715


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

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@boring-cyborg boring-cyborg bot added the tests PRs that add or change tests label Nov 14, 2025
@pull-request-size pull-request-size bot added the size/XL PRs between 500-999 LOC, often PRs that grown with feedback label Nov 14, 2025
@svozza svozza requested a review from sdangol November 14, 2025 14:58
@svozza svozza changed the title Testing/remove esbuild banner e2e chore(testing): remove unnecessary esbuild banner from e2e tests Nov 14, 2025
@svozza svozza changed the title chore(testing): remove unnecessary esbuild banner from e2e tests chore(testing): remove unnecessary esbuild banner from e2e tests Nov 14, 2025
@svozza svozza force-pushed the testing/remove-esbuild-banner-e2e branch from c345d5f to 783cdc0 Compare November 14, 2025 15:00
@sonarqubecloud
Copy link

@svozza svozza changed the title chore(testing): remove unnecessary esbuild banner from e2e tests test(maintenance): remove unnecessary esbuild banner from e2e tests Nov 14, 2025
Copy link
Contributor

@dreamorosi dreamorosi left a comment

Choose a reason for hiding this comment

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

Good stuff!

@dreamorosi dreamorosi merged commit 0d9a98d into main Nov 14, 2025
64 checks passed
@dreamorosi dreamorosi deleted the testing/remove-esbuild-banner-e2e branch November 14, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL PRs between 500-999 LOC, often PRs that grown with feedback tests PRs that add or change tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintenance: Do Not Use an ESBuild Banner by Default in E2E tests

2 participants