New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

jest-css-modules

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
J

jest-css-modules

A Jest processor that prevents CSS module parse errors

1.0.2
100

Supply Chain Security

100

Vulnerability

58

Quality

76

Maintenance

100

License

Version published
Maintainers
1
Created
Issues
15

Jest CSS Modules

A Jest script processor that prevents CSS module parse errors.

Installation

npm install --save-dev jest-css-modules

Update your package.json file's jest configuration:

{
  "jest": {
    "scriptPreprocessor": "<rootDir>/node_modules/jest-css-modules",
  }
}

Now, imports such as import styles from './MyModule.css'; will pass through Jest without causing any pain.

Supports .css, .less, and .scss extensions.

FAQs

Package last updated on 28 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts