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