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.
cd into the folder where you want to create your project and run:
73
+
```
74
+
slush generator-scalable-react
75
+
```
76
+
77
+
Follow the onscreen instructions to create your app.
78
+
59
79
## Deployment
60
80
A demo ExpressJS setup is included with the app. The express server will serve up the production minified bundle.js, index.html and any other assets that are located in the `/server/public` folder.
61
81
@@ -191,12 +211,11 @@ export {
191
211
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.
192
212
193
213
## Testing
194
-
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
214
+
Included in the setup is a test suite that will run your tests using Jest. A number of testing utilities are included, including
195
215
- Expect (Plus Expect-JSX)
196
-
- Mocha
197
216
- Chai (JSX and Immutable)
198
217
- Enzyme
199
-
-Karma (including multiple Karma plugins)
218
+
-Jest & enzyme-to-json in order to use the Jest snappshotting with Enzyme.
200
219
201
220
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.
202
221
@@ -205,7 +224,7 @@ To run tests, you will run
205
224
npm run test
206
225
```
207
226
208
-
which will pick up any file with the .test.js postfix and run it through Karma / Mocha, printing a report to the commandline.
227
+
which will pick up any file with the .test.js postfix and run it through Jest.
0 commit comments