An open API service indexing awesome lists of open source software.

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.

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.