Skip to content
This repository was archived by the owner on Apr 11, 2019. It is now read-only.

Commit 698a419

Browse files
committed
Feat: remove unneeded testing commands
1 parent ba1167a commit 698a419

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

app/src/containers/FeatureFirstContainer/tests/index.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ import expect from 'expect';
33
import React from 'react';
44
import { shallow } from 'enzyme';
55

6+
// We are testing our react components using
7+
// Airbnb's enzyme
8+
// Checkout https://medium.com/airbnb-engineering/enzyme-javascript-testing-utilities-for-react-a417e5e5090f#.n5bteqyp4
9+
// When testing connected containers, things can be a little trickier
10+
// because you need to mock the store in order to test the components
11+
// in total isolation.
12+
// SEE: http://redux.js.org/docs/recipes/WritingTests.html
613
function setup() {
714
const props = {
815
isLoading: true,
@@ -15,6 +22,7 @@ function setup() {
1522
wrapper,
1623
};
1724
}
25+
1826
describe('<FeatureFirstContainer />', () => {
1927
it('should show a loading indicator while loading', () => {
2028
const {

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828
"deploy": "NODE_ENV=production `npm bin`/webpack -p",
2929
"start": "npm run dev",
3030
"clean": "rm -rf app/dist app/build",
31-
"setup": "npm install",
32-
"devtest": "webpack-dev-server --config ./config/webpack/webpack.test.babel.js",
33-
"test2": "NODE_ENV=test mocha --compilers js:babel-core/register --require config/testing/test-bundler \"./app/src/**/*.test.js\""
31+
"setup": "npm install"
3432
},
3533
"repository": {
3634
"type": "git",

0 commit comments

Comments
 (0)