ben-rogerson / twin.macro

🦹‍♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.
MIT License
7.92k stars 183 forks source link

Test upgrades #743

Closed ben-rogerson closed 2 years ago

ben-rogerson commented 2 years ago

This PR sets up Jest for standard (non-snapshot) tests using Babel.

I've fixed a few arbitrary value/property/variant issues to do with matching more complex strings within the brackets.

Twin gained another feature too, we can now pass a tailwind config object into the twin config option. Previously the config option only accepted a string path to the tailwind config.