Socket
Socket
Sign inDemoInstall

jest-preset-kyt-styled

Package Overview
Dependencies
552
Maintainers
5
Versions
84
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jest-preset-kyt-styled

Jest preset for linting styles in CSS-in-JS projects


Version published
Weekly downloads
7.5K
decreased by-8.19%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

jest-preset-kyt-styled

Jest preset for Stylelint-ing files in CSS-in-JS projects. Internally, uses these packages from the styled-components project:

Installation

$ yarn add --dev jest jest-preset-kyt-styled

// or

$ npm i --save-dev --save-exact jest jest-preset-kyt-styled

Setup

In your local Jest config - for instance, jest.config.js:

module.exports = {
  preset: 'jest-preset-kyt-styled',
  // By default, looks for files named `styled.js` in `src` (NYT convention)
  // change this value to match your project files that contain CSS-in-JS
  testMatch: ['<rootDir>/src/**/**/styled.js'],
};

FAQs

Last updated on 01 Nov 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc