1.1.2 • Published 5 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
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago