This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

jest-matcher-css

1.1.0 • Public • Published

CSS Matcher for Jest

Installation

npm install jest-matcher-css

Usage

In your Jest config:

"jest"{
  "setupTestFrameworkScriptFile": "./setup.js"
}

In setup.js:

const cssMatcher = require('jest-matcher-css');
 
expect.extend({
  toMatchCss: cssMatcher,
});

Credit

Written by Adam Wathan for Tailwind CSS. I moved it into its own module to use it in a couple of Tailwind plugins.

Readme

Keywords

none

Package Sidebar

Install

npm i jest-matcher-css

Weekly Downloads

817

Version

1.1.0

License

ISC

Unpacked Size

8.75 kB

Total Files

6

Last publish

Collaborators

  • benface.com