jest-css-modules-transform
JSON →A Jest preprocessor that transforms CSS, SCSS, SASS, Less, and Stylus files into JavaScript objects mimicking Webpack's css-loader module output. Version 4.4.2 is current stable; released occasionally with bug fixes and minor features. Unlike simple identity mock objects (e.g., `{}`), this generates correct class name mappings (as-is, camelCase, dashes), supports PostCSS with custom plugins, and allows prepending variables or mixins. It provides configuration via `jest-css-modules-transform-config.js` for per-preprocessor options, making it ideal for visual regression testing or component testing where real class names matter.
Traffic · last 30 days ↓37% vs prev 7d
total hits 18
actors 7 distinct systems
last hit 1d ago AhrefsBot
top countries 🇺🇸 United States · 🇫🇷 France · 🇸🇬 Singapore · 🇨🇦 Canada · 🇩🇪 Germany
Resources
API endpoints
compatibility /v1/registry/jest-css-modules-transform/compatibility