karma-react-preprocessor
Preprocessor for react jsx files
Installation
The easiest way is to keep karma-react-preprocessor
as a devDependency in your package.json
.
You can simple do it by:
npm install karma-react-preprocessor --save-dev
Configuration
Following code shows the default configuration...
// karma.conf.jsmodule { config;};
By default preprocessor transform extension from jsx to js. You can change it by:
// karma.conf.jsmodule { config;};
You can pass an options object that will be passed to react-tools module. See available options.
// karma.conf.jsmodule { config;};
You can look at karma.conf.js how example
For more information on Karma see the homepage.