jest-postcss
Jest utils for postcss plugins
Installation
npm install --save-dev jest-postcss
Usage
Import jest-postcss
into your test setup once.
Matchers
.toMatchCSS
toMatchCSScss: string
Compares the postcss result css against the Provided CSS
Snapshot Serializers
Allows use of snapshot testing with postcss results, pretifying the CSS for consistency.