Skip to content

test: More bundler versions #725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Apr 10, 2025

This PR:

  • Adds Node v20 and v22 to the CI test matrix (We now test 14-22)
  • Adds Vite v6 and Rollup v4 to the tests and ensures they're only imported andrun on Node versions that support them

@timfish timfish force-pushed the timfish/test/more-bundler-versions branch 2 times, most recently from fb6d441 to d6f1854 Compare April 10, 2025 20:49
@timfish timfish force-pushed the timfish/test/more-bundler-versions branch from d6f1854 to 6736847 Compare April 10, 2025 20:58
@@ -6,10 +6,10 @@ import { testIfNodeMajorVersionIsLessThan18 } from "../../utils/testIf";

function checkBundle(bundlePath1: string, bundlePath2: string) {
const process1Output = childProcess.execSync(`node ${bundlePath1}`, { encoding: "utf-8" });
expect(process1Output).toBe("undefined\n");
Copy link
Collaborator Author

@timfish timfish Apr 10, 2025

Choose a reason for hiding this comment

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

Looks like newer versions of Node have more/different control characters at the end of the output because these were failing on v20 and v22!

@timfish timfish marked this pull request as ready for review April 10, 2025 21:04
@timfish timfish requested review from Lms24 and lforst April 10, 2025 21:15
@timfish timfish merged commit e27f76d into getsentry:main Apr 11, 2025
22 checks passed
@timfish timfish deleted the timfish/test/more-bundler-versions branch April 11, 2025 15:35
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.

Test newer bundler versions
2 participants