|
13 | 13 | "build": "NODE_ENV=development WEBPACK=cleandist webpack --progress --stats --config webpack.config.js", |
14 | 14 | "build:watch": "NODE_ENV=development WEBPACK=cleandist webpack --progress --stats --config webpack.config.js --watch", |
15 | 15 | "deploy": "NODE_ENV=production WEBPACK=cleandist webpack --progress --stats --config webpack.config.js", |
16 | | - "test": "mocha --compilers js:babel-core/register --require ./test/test_helper.js --recursive", |
| 16 | + "test": "node --harmony_proxies node_modules/.bin/jest", |
17 | 17 | "test:watch": "npm run test -- --watch", |
18 | 18 | "tasks:highlighter": "curl http://localhost:5000/api/highlighter_tasks/?format=json | python -m json.tool > pbs-highlighter/highlighter_tasks.json", |
19 | 19 | "tasks:quiz": "curl http://localhost:5000/api/quiz_tasks/?format=json | python -m json.tool > pbs-quiz/quiz_tasks.json" |
|
24 | 24 | "autoprefixer-loader": "^3.2.0", |
25 | 25 | "babel-core": "^6.4.5", |
26 | 26 | "babel-eslint": "^7.1.0", |
| 27 | + "babel-jest": "^18.0.0", |
27 | 28 | "babel-loader": "^6.2.1", |
28 | 29 | "babel-plugin-add-module-exports": "^0.2.1", |
29 | 30 | "babel-plugin-transform-class-properties": "^6.19.0", |
|
38 | 39 | "babel-register": "^6.16.3", |
39 | 40 | "babel-require": "^1.0.1", |
40 | 41 | "babel-runtime": "^6.3.19", |
41 | | - "chai": "^3.5.0", |
42 | | - "chai-immutable": "^1.5.3", |
43 | 42 | "colors": "^1.1.2", |
44 | 43 | "css-loader": "^0.26.0", |
45 | 44 | "csswring": "^5.1.0", |
|
49 | 48 | "eslint": "^3.10.2", |
50 | 49 | "eslint-config-airbnb": "^13.0.0", |
51 | 50 | "eslint-loader": "^1.6.1", |
| 51 | + "eslint-module-utils": "^2.0.0", |
52 | 52 | "eslint-plugin-import": "^2.2.0", |
53 | 53 | "eslint-plugin-jsx-a11y": "^2.2.3", |
54 | 54 | "eslint-plugin-react": "^6.7.1", |
|
58 | 58 | "file-loader": "^0.9.0", |
59 | 59 | "fs-extra": "^1.0.0", |
60 | 60 | "html-webpack-plugin": "^2.22.0", |
| 61 | + "identity-obj-proxy": "^3.0.0", |
61 | 62 | "immutable": "^3.8.1", |
62 | 63 | "imports-loader": "^0.6.3", |
| 64 | + "jest": "^18.1.0", |
63 | 65 | "json-loader": "^0.5.1", |
64 | | - "mocha": "^3.0.2", |
65 | | - "mocha-webpack": "^0.7.0", |
66 | 66 | "moment": "^2.15.2", |
67 | | - "node-sass": "^3.0.0-beta.7", |
| 67 | + "node-sass": "^4.4.0", |
68 | 68 | "normalizr": "^2.3.1", |
69 | 69 | "on-build-webpack": "^0.1.0", |
70 | 70 | "postcss-loader": "^1.1.1", |
|
73 | 73 | "react": "^15.4.0", |
74 | 74 | "react-addons-css-transition-group": "^15.4.0", |
75 | 75 | "react-addons-shallow-compare": "^15.4.0", |
| 76 | + "react-addons-test-utils": "^15.4.2", |
76 | 77 | "react-dates": "^4.0.0", |
77 | 78 | "react-dom": "^15.4.0", |
78 | 79 | "react-hot-loader": "^3.0.0-beta.6", |
79 | 80 | "react-portal": "^3.0.0", |
80 | 81 | "react-redux": "^4.2.1", |
81 | 82 | "react-router": "^3.0.0", |
| 83 | + "react-test-renderer": "^15.4.2", |
82 | 84 | "redux": "^3.2.1", |
83 | 85 | "redux-devtools": "^3.1.0", |
84 | 86 | "redux-thunk": "^2.1.0", |
|
89 | 91 | "webpack": "^1.12.2", |
90 | 92 | "webpack-dev-server": "^1.12.0" |
91 | 93 | }, |
92 | | - "dependencies": {} |
| 94 | + "dependencies": {}, |
| 95 | + "jest": { |
| 96 | + "verbose": true, |
| 97 | + "modulePaths": [ |
| 98 | + "<rootDir>/app", |
| 99 | + "<rootDir>/vendor/bower_components" |
| 100 | + ], |
| 101 | + "moduleFileExtensions": ["", "js", "jsx"], |
| 102 | + "moduleDirectories": ["node_modules", "web_modules"], |
| 103 | + "moduleNameMapper": { |
| 104 | + "^modernizr$": "<rootDir>/vendor/bower_components/modernizr/modernizr.js", |
| 105 | + "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js", |
| 106 | + "\\.(css|scss)$": "identity-obj-proxy" |
| 107 | + } |
| 108 | + } |
93 | 109 | } |
0 commit comments