v0.3.2
New features
Jest matcher improvements (#168)
The jest matcher @compiled/jest-css-in-js has been improved thanks to @ankeetmaini! It now parses the CSS into an AST which enabled some cool improvements.
Notably, we can now narrow the assertion using target and/or media options like so:
expect(element).toHaveCompiledCss('color', 'blue', { target: '&:hover' });For more information see the website https://compiledcssinjs.com/docs/testing