mocha-css
Version:
A mocha stylesheet for the HTML reporter that let you append visual tests
45 lines (30 loc) • 1.1 kB
Markdown
# mocha-css
> A mocha stylesheet for the HTML reporter that let you append visual tests
[![CircleCI][circleci-image]][circleci-url] [![npm][npm-image]][npm-url] [![license][license-image]][license-url]

In the screenshot below the `h1` element doesn't have the original mocha.css
style applied
## Installation
**NPM**
``` sh
npm install --save-dev mocha-css
```
## Usage
Simply replace the `mocha.css` file you're importing with this one
**Webpack**
``` js
// es6
import 'mocha-css'
// commonjs
require('mocha-css')
```
**CDN**
``` html
<link href="https://unpkg.com/mocha-css" rel="stylesheet" />
```
[license-image]: https://img.shields.io/npm/l/normalize.css.svg?style=flat-square
[license-url]: LICENSE.md
[npm-image]: https://img.shields.io/npm/v/mocha-css.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/mocha-css
[circleci-image]: https://circleci.com/gh/posva/mocha-css/tree/master.svg?style=shield
[circleci-url]: https://circleci.com/gh/posva/mocha-css