style-testing

Style test utilities by means of getComputedStyle

Usage no npm install needed!

<script type="module">
  import styleTesting from 'https://cdn.skypack.dev/style-testing';
</script>

README

Style Testing

Style testing utilities with using getComputedStyle

Concept

Style is one of the most vulnerable feature in the Web context, even if it's 2016 or you introduce the idea of CSS Modules or something. As long as your component depents on shared css file or accepts style customising, it can always get affected in bad way. If it's simple and easy, every one can start style testing.

Install

$ npm install --save-dev style-testing

Try it out

$ git clone git@github.com:piglovesyou/style-testing.git
$ cd example/minimum
$ npm install
$ npm test

License

MIT