Skip to content
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

#7186: Replace webpack.scripts with Jest #7340

Merged
merged 4 commits into from
Jan 16, 2024
Merged

Conversation

fregante
Copy link
Contributor

@fregante fregante commented Jan 15, 2024

What does this PR do?

I wanted to see what making this change would entail. It turns out, it was a quick change. As you can see this drops a lot of custom code and a dependency.

😍

Future Work

This PR is intentionally minimal.

We could replace the expect call with a full snapshot so that we don't keep track of involuntary registration changes but also the actual changes in bricks (e.g. if a brick is added and one removed, the expectation is successful but wrong)

Checklist

  • I verified that the output matches the old one
  • Designate a primary reviewer: @grahamlangford

@fregante fregante changed the title Replace webpack.scripts with Jest #7186: Replace webpack.scripts with Jest Jan 15, 2024
Copy link

codecov bot commented Jan 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a1cd6c1) 72.09% compared to head (c883ea9) 72.26%.

❗ Current head c883ea9 differs from pull request most recent head c4c55f2. Consider uploading reports for the commit c4c55f2 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7340      +/-   ##
==========================================
+ Coverage   72.09%   72.26%   +0.17%     
==========================================
  Files        1206     1205       -1     
  Lines       37449    37430      -19     
  Branches     7019     7015       -4     
==========================================
+ Hits        26997    27048      +51     
+ Misses      10452    10382      -70     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -32,15 +32,15 @@ registerContribBlocks();

Error.stackTraceLimit = Number.POSITIVE_INFINITY;

console.log(`version: ${process.env.NPM_PACKAGE_VERSION}`);
console.log(`version: ${process.env.npm_package_version}`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's causing the capitalization change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The webpack config was intentionally changing the ENV. The lowercase ENV is provided by npm run

Copy link

No loom links were found in the first post. Please add one there if you'd like to it to appear on Slack.

Do not edit this comment manually.

@fregante fregante enabled auto-merge (squash) January 16, 2024 15:37
@fregante fregante disabled auto-merge January 16, 2024 15:37
@fregante fregante enabled auto-merge (squash) January 16, 2024 15:40
@fregante fregante merged commit f298ba8 into main Jan 16, 2024
12 of 13 checks passed
@fregante fregante deleted the F/dev/drop-webpack-scripts branch January 16, 2024 15:46
@grahamlangford grahamlangford added this to the 1.8.7 milestone Jan 18, 2024
@fregante fregante mentioned this pull request Mar 27, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Drop webpack.scripts.js in favor of Jest
2 participants