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
nonePackage Sidebar
Install
Weekly Downloads