Preparing for system design interviews?  Try bugzed.com →

jest-css-modules-transform

JSON →
library 4.4.2 ·javascript
verified Jun 17, 2026

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.

total hits 10
actors 4 distinct systems
last hit 19d ago AhrefsBot
GPTBot
4
Script
1
ByteDance
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇩🇪 Germany · 🇸🇬 Singapore