You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 11, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,6 +163,24 @@ export {
163
163
### Configuring your own generators
164
164
For information on how to build your own generators with relative ease, please go to the [Plop Microgenerator](https://github.com/amwmedia/plop) homepage for detailed instructions.
165
165
166
+
## Testing
167
+
Included in the setup is a test suite that will run your tests in the browser using Karma. A number of testing utilities are included, including
168
+
- Expect (Plus Expect-JSX)
169
+
- Mocha
170
+
- Chai (JSX and Immutable)
171
+
- Enzyme
172
+
- Karma (including multiple Karma plugins)
173
+
174
+
You can see examples for testing of React Components, Redux Action Creators and Reducers in the repository [here](https://github.com/RyanCCollins/scalable-react-boilerplate/tree/master/app/src/containers/FeatureFirstContainer/tests). Please follow the convention of naming tests with a .test.js postfix, or else the test suite will not recognize your tests.
175
+
176
+
To run tests, you will run
177
+
```js
178
+
npm run test
179
+
```
180
+
181
+
which will pick up any file with the .test.js postfix and run it through Karma / Mocha, printing a report to the commandline.
0 commit comments