Skip to content

test(minifier): add variable collapsing test cases#6227

Closed
DonIsaac wants to merge 1 commit intodon/10-01-fix_minifier_collapse_variables_when_join_vars_option_is_truefrom
don/10-01-test_minifier_add_variable_collapsing_test_cases
Closed

test(minifier): add variable collapsing test cases#6227
DonIsaac wants to merge 1 commit intodon/10-01-fix_minifier_collapse_variables_when_join_vars_option_is_truefrom
don/10-01-test_minifier_add_variable_collapsing_test_cases

Conversation

@DonIsaac
Copy link
Contributor

@DonIsaac DonIsaac commented Oct 1, 2024

Add test cases for the variable declaration collapsing AST pass

Copy link
Contributor Author

DonIsaac commented Oct 1, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @DonIsaac and the rest of your teammates on Graphite Graphite

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 1, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added the A-minifier Area - Minifier label Oct 1, 2024
@DonIsaac DonIsaac marked this pull request as ready for review October 1, 2024 17:37
@DonIsaac DonIsaac force-pushed the don/10-01-fix_minifier_collapse_variables_when_join_vars_option_is_true branch from 2b9838c to ea896ec Compare October 1, 2024 17:43
@DonIsaac DonIsaac force-pushed the don/10-01-test_minifier_add_variable_collapsing_test_cases branch from e7967f0 to 69779a1 Compare October 1, 2024 17:43
@codspeed-hq
Copy link

codspeed-hq bot commented Oct 1, 2024

CodSpeed Performance Report

Merging #6227 will not alter performance

Comparing don/10-01-test_minifier_add_variable_collapsing_test_cases (3d03f87) with don/10-01-fix_minifier_collapse_variables_when_join_vars_option_is_true (ea896ec)

Summary

✅ 29 untouched benchmarks

@DonIsaac DonIsaac force-pushed the don/10-01-test_minifier_add_variable_collapsing_test_cases branch from 69779a1 to 3d03f87 Compare October 1, 2024 18:02
@Boshen Boshen self-assigned this Oct 2, 2024
@Boshen Boshen marked this pull request as draft October 2, 2024 01:39
@shulaoda
Copy link
Contributor

shulaoda commented Oct 7, 2024

It seems that we should not put it separately in a file. See #5912

BTW, I am curious about where these test cases came from. Shouldn't we prioritize copying them from the closure-compiler? See this 🤔

@Boshen Boshen closed this in #6421 Oct 10, 2024
Boshen pushed a commit that referenced this pull request Oct 10, 2024
…s` (#6421)

closes #6227

I noticed that the implementation of `collapse-variable-declarations`
seems incomplete and appears quite simple. Therefore, I would like to
quickly add all the test cases to work on this.

Previously, I saw that `DonIsaac` had also submitted a related PR, but
he might have been too busy to respond for a long time. I want to
apologize for closing his PR.
@Boshen Boshen deleted the don/10-01-test_minifier_add_variable_collapsing_test_cases branch February 17, 2025 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-minifier Area - Minifier

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants