Skip to content

test: cover multi-asset minify and js-only minimizer fallback#671

Merged
alexander-akait merged 2 commits intomainfrom
claude/test-multi-asset-minify-acmUW
May 8, 2026
Merged

test: cover multi-asset minify and js-only minimizer fallback#671
alexander-akait merged 2 commits intomainfrom
claude/test-multi-asset-minify-acmUW

Conversation

@alexander-akait
Copy link
Copy Markdown
Member

Adds two tests using a shared multi-asset entry that emits js, json,
css, and html. The first wires up dedicated minimizers for each type
and asserts they all get minified. The second uses only the default
TerserPlugin (js) and asserts non-js assets pass through untouched
without errors.

https://claude.ai/code/session_01Wa5WuhunnggPcf7DLrx6Ri

claude added 2 commits May 8, 2026 11:58
Adds two tests using a shared `multi-asset` entry that emits js, json,
css, and html. The first wires up dedicated minimizers for each type
and asserts they all get minified. The second uses only the default
TerserPlugin (js) and asserts non-js assets pass through untouched
without errors.

https://claude.ai/code/session_01Wa5WuhunnggPcf7DLrx6Ri
Replaces the four-instance setup with one TerserPlugin that takes an
array of minimizers. Each built-in minimizer's `.filter` dispatches the
asset to the right one, so js/json/css/html all get minified in one
pass. Switches the css minimizer to `cleanCssMinify` because Jest 27's
resolver can't follow `cssnano`'s subpath-`exports` dependency on
`@colordx/core/plugins/*` when the chain runs inline (jsonMinify
disables workers for the whole array).

https://claude.ai/code/session_01Wa5WuhunnggPcf7DLrx6Ri
@linux-foundation-easycla
Copy link
Copy Markdown

CLA Not Signed

@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.11%. Comparing base (34610d9) to head (1596672).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #671   +/-   ##
=======================================
  Coverage   96.11%   96.11%           
=======================================
  Files           3        3           
  Lines         592      592           
  Branches      201      201           
=======================================
  Hits          569      569           
  Misses         21       21           
  Partials        2        2           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alexander-akait alexander-akait merged commit 9b82a77 into main May 8, 2026
28 of 29 checks passed
@alexander-akait alexander-akait deleted the claude/test-multi-asset-minify-acmUW branch May 8, 2026 12:52
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.

2 participants