|
3 | 3 | "version": "1.0.0", |
4 | 4 | "private": false, |
5 | 5 | "scripts": { |
6 | | - "test": "./node_modules/karma/bin/karma start", |
| 6 | + "test": "npm run test:dev:unit", |
7 | 7 | "test:ci:unit": "./node_modules/karma/bin/karma start --browsers PhantomJS --single-run; npm run test:ci:lint", |
8 | | - "test:ci:functional": "node ./nightwatch.js -c ./nightwatch.json -e production", |
| 8 | + "test:ci:functional": "BROWSER=phantomjs bash tests/functional/test.sh start-ci", |
| 9 | + "posttest:ci:functional": "bash tests/functional/test.sh stop", |
| 10 | + "test:ci:unit": "karma start --browsers PhantomJS --single-run; npm run test:ci:lint", |
| 11 | + "test:dev:unit": "karma start", |
9 | 12 | "test:ci:lint": "eslint ./src/**/*.js", |
10 | 13 | "test:dev:unit": "./node_modules/karma/bin/karma start", |
11 | | - "test:dev:functional": "node ./nightwatch.js -c ./nightwatch.json", |
| 14 | + "test:dev:functional": "BROWSER=chrome bash tests/functional/test.sh start", |
| 15 | + "posttest:dev:functional": "bash tests/functional/test.sh stop", |
12 | 16 | "test:dev:lint": "eslint ./src/scripts/**/*.js", |
| 17 | + "test:stylelint": "stylelint './src/**/*.scss' --config webpack/.stylelintrc", |
13 | 18 | "dev": "node webpack/dev-server.js & PORT=8000 node start.js", |
14 | 19 | "start": "NODE_PATH=\"./src\" node ./start", |
15 | 20 | "build": "node ./node_modules/webpack/bin/webpack.js --config webpack/prod.config.js", |
|
134 | 139 | "karma-sourcemap-loader": "^0.3.7", |
135 | 140 | "karma-webpack": "^1.6.0", |
136 | 141 | "mocha": "^2.2.5", |
137 | | - "nightwatch": "^0.8.6", |
138 | 142 | "nodemon": "^1.7.1", |
139 | 143 | "path": "^0.11.14", |
| 144 | + "phantomjs": "^1.9.20", |
140 | 145 | "phantomjs-polyfill": "0.0.1", |
141 | 146 | "piping": "^0.3.0", |
| 147 | + "pre-commit": "^1.1.3", |
142 | 148 | "react-addons-test-utils": "^0.14.7", |
143 | 149 | "react-transform-catch-errors": "^1.0.0", |
144 | 150 | "react-transform-hmr": "^1.0.1", |
|
149 | 155 | "selenium-server": "^2.48.2", |
150 | 156 | "sinon": "^1.15.3", |
151 | 157 | "sinon-chai": "^2.8.0", |
| 158 | + "stylelint-webpack-plugin": "^0.2.0", |
| 159 | + "wdio-mocha-framework": "^0.3.7", |
| 160 | + "wdio-spec-reporter": "0.0.3", |
| 161 | + "webdriverio": "4.2.1", |
152 | 162 | "webpack-dev-server": "^1.6.5" |
153 | 163 | }, |
154 | 164 | "pre-commit": [ |
155 | | - "lint", |
156 | | - "validate", |
157 | | - "test" |
| 165 | + "test:dev:lint", |
| 166 | + "test:stylelint" |
158 | 167 | ] |
159 | 168 | } |
0 commit comments