👩🏭 Jest transformer to import CSS into Jest's jsdom
MIT License
Bot releases are hidden (Show)
Bug fix
Published by dferber90 about 2 years ago
postcss-load-config
to latest version in https://github.com/dferber90/jest-transform-css/pull/23, thanks @YankovskyBREAKING CHANGE
Your .postcssrc
file might need to be adapted as postcss-load-config
dropped support for the sync API and for Node.js 12 & 10.
Published by dferber90 about 2 years ago
BREAKING CHANGE
jesttransformcss.config.js
in favor of transformer configYou no longer need a jesttransformcss.config.js
file. Instead, configure your transform directly.
See https://github.com/dferber90/jest-transform-css/pull/22 for more information.
massive thanks to @Yankovsky for coming up with & implementing this improvement
Published by dferber90 over 2 years ago
Published by dferber90 over 2 years ago
Published by dferber90 almost 3 years ago
Published by dferber90 about 4 years ago
generateScopedName
config option to jesttransformcss.config.js
(#7, thanks @tomrule007)Published by dferber90 about 6 years ago
rootDir
from cache keySo far CSS Modules were enabled by default. They are now opt-in. Add a configuration file called jesttransformcss.config.js
at your project root to and add the following content to activate them:
// jesttransformcss.config.js
module.exports = {
modules: true
};
Notice that you can also pass a function to modules
to determine the mode depending on the file. See the README for more information.
Published by dferber90 about 6 years ago
postcss-load-config
and postcss-modules
are no longer peerDependencies
, so they can be removed from consuming projects not using them themselves.
Published by dferber90 about 6 years ago
Changes:
postcss
, postcss-load-config
and postcss-modules
peer dependenciesPublished by dferber90 about 6 years ago