https://github.com/derekahn/karma-mocha-chai-react
Simple proof of concept in configuring karma and webpack to work with a React project.
https://github.com/derekahn/karma-mocha-chai-react
Last synced: over 1 year ago
JSON representation
Simple proof of concept in configuring karma and webpack to work with a React project.
- Host: GitHub
- URL: https://github.com/derekahn/karma-mocha-chai-react
- Owner: derekahn
- Created: 2016-01-12T10:43:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-12T11:18:24.000Z (over 10 years ago)
- Last Synced: 2023-08-13T04:52:42.826Z (almost 3 years ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# karma-mocha-chai-react
Simple proof of concept in configuring karma and webpack to work with a React project.
## Project Set Up
* Node >= (v 4.0)
```bash
$ npm install
```
### To run tests
```bash
$ npm test
```
or
```bash
$ npm test_watch
```
### To run project
```bash
$ npm start
```
## Insiration, refrence, and resources
* [tutorial on karma and webpack for react](https://www.codementor.io/reactjs/tutorial/test-reactjs-components-karma-webpack) walkthrough on setting up tests with karma for react.
* [react-es6-webpack-karma-boilerplate](https://github.com/mvader/react-es6-webpack-karma-boilerplate) is a boilerplate for kick starting a project with the following technologies:
React
ES6 with Babel
Webpack for bundling
Webpack Dev Server
React Hot Loader for tweaking React components in real time.
Karma for running unit tests.
The various webpack options used have been explained in detailed as comments in the config file. Should help with understanding the nitty-gritty :).
* [react-es6-webpack-boilerplate](https://github.com/vasanthk/react-es6-webpack-boilerplate) is a simple boilerplate.