1.1.2 • Published 4 years ago
mocha-react v1.1.2
Mocha React
An easy way to use Mocha (a lot faster than Jest!) for testing React components written in plain Javascript or Typescript.
Install it
yarn add mocha-react
Setup mocha on your project
Add this to your global.d.ts
file:
import 'mocha-react/types'
Change your test script on package.json
to:
"test": "mocha --config ./node_modules/mocha-react/config.js src/**/*.{test,spec}.{ts,tsx} --exit"
You can use any other Mocha params if you need to (e.g. --watch
), but passing this config param is all you need to have things running smoothly.
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago