All Projects → justinsisley → Jest-CSS-Modules

justinsisley / Jest-CSS-Modules

Licence: other
A Jest script processor that prevents CSS module parse errors.

Programming Languages

javascript
184084 projects - #8 most used programming language
HCL
1544 projects
CSS
56736 projects

Projects that are alternatives of or similar to Jest-CSS-Modules

parcelui
Parcel + Typescript + React/Preact + Router + CSS Modules + SASS + Jest + Api-Now + Github Actions CI
Stars: ✭ 32 (-57.33%)
Mutual labels:  jest, css-modules
React Redux Saga Starter
Basic, Opinionated starter kit for React+Redux+Redux Saga with support for SCSS CSS Modules, Storybook, JEST testing, and ESLint
Stars: ✭ 12 (-84%)
Mutual labels:  jest, css-modules
React Redux Boilerplate
Awesome React Redux Workflow Boilerplate with Webpack 4
Stars: ✭ 307 (+309.33%)
Mutual labels:  jest, css-modules
Push Starter
React Redux Starter with SSR 🤖
Stars: ✭ 43 (-42.67%)
Mutual labels:  jest, css-modules
React Pages Boilerplate
Deliver react + react-router application to gh-pages
Stars: ✭ 134 (+78.67%)
Mutual labels:  jest, css-modules
React
Extremely simple boilerplate, easiest you can find, for React application including all the necessary tools: Flow | React 16 | redux | babel 6 | webpack 3 | css-modules | jest | enzyme | express + optional: sass/scss
Stars: ✭ 244 (+225.33%)
Mutual labels:  jest, css-modules
Webpack React Boilerplate
Minimal React 16 and Webpack 4 boilerplate with babel 7, using the new webpack-dev-server, react-hot-loader, CSS-Modules
Stars: ✭ 358 (+377.33%)
Mutual labels:  jest, css-modules
React Boilerplate
Production-ready boilerplate for building universal web apps with React and Redux
Stars: ✭ 53 (-29.33%)
Mutual labels:  jest, css-modules
Nextjs Ts
Opinionated Next JS project boilerplate with TypeScript and Redux
Stars: ✭ 134 (+78.67%)
Mutual labels:  jest, css-modules
Front End Guide
📚 Study guide and introduction to the modern front end stack.
Stars: ✭ 14,073 (+18664%)
Mutual labels:  jest, css-modules
rr-boilerplate
A lightweight React&Redux boilerplate
Stars: ✭ 35 (-53.33%)
Mutual labels:  jest, css-modules
jest-fuck
Play an audible 'fuck' whenever your tests fail
Stars: ✭ 44 (-41.33%)
Mutual labels:  jest
react16-seed-with-apollo-graphql-scss-router4-ssr-tests-eslint-prettier-docker-webpack3-hot
Seed to create your own project using React with Apollo GraphQL client
Stars: ✭ 19 (-74.67%)
Mutual labels:  jest
Batteries-Included-Next.js
A starting boilerplate for a TS Next.js project with batteries included. Tailwind CSS for styling, Jest and React Testing Library working with path aliases and node-mock-http for API route testing.
Stars: ✭ 35 (-53.33%)
Mutual labels:  jest
react-testing-talk
No description or website provided.
Stars: ✭ 12 (-84%)
Mutual labels:  jest
monorepo-typescript-next-the-sane-way
A monorepo example using TypeScript and Next.js
Stars: ✭ 104 (+38.67%)
Mutual labels:  jest
nextjs-baseweb
Slightly opinionated scaffold of Next.js and Base Web.
Stars: ✭ 46 (-38.67%)
Mutual labels:  jest
Hangar
Hackathon sponsorship made easy
Stars: ✭ 34 (-54.67%)
Mutual labels:  jest
testing-reactjs-examples
🧪 "What should we test in our React components" - presentation examples.
Stars: ✭ 23 (-69.33%)
Mutual labels:  jest
node-backend-template
A template for NodeJS backend projects
Stars: ✭ 19 (-74.67%)
Mutual labels:  jest

Note: As of v2.0.0, this library is simply implementing identity-obj-proxy. The Jest documentation provides more details on using identity-obj-proxy to solve this problem directly, and I recommend that you use that library instead of this one.

Jest CSS Modules

A Jest script processor that prevents CSS module parse errors.

Installation

npm install -D jest-css-modules

Update your package.json file's jest configuration:

{
  "jest": {
    "moduleNameMapper": {
      "\\.(css|less|scss|sss|styl)$": "<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, .scss, .sss, and .styl extensions.

Note: If you continue to experience CSS module parsing errors after installing and configuring this library, try running jest with the --no-cache flag. Read the Jest documentation on caching for more details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].