|
10 | 10 | "watch": "webpack --watch",
|
11 | 11 | "lint": "tslint -c tslint.json 'src/**/*.{ts,tsx}'",
|
12 | 12 | "pretest": "npm run lint",
|
13 |
| - "test": "karma start karma.conf --single-run=true" |
| 13 | + "test": "jest --coverage" |
14 | 14 | },
|
15 | 15 | "typings": "typings/index.d.ts",
|
16 | 16 | "author": "RJ Zaworski <rj@rjzaworski.com> (http://rjzaworski.com)",
|
|
27 | 27 | "babel-loader": "^6.2.5",
|
28 | 28 | "babel-preset-es2015": "^6.14.0",
|
29 | 29 | "jasmine-core": "2.4.1",
|
30 |
| - "karma": "^1.1.2", |
31 |
| - "karma-jasmine": "1.0.2", |
32 |
| - "karma-phantomjs-launcher": "^1.0.1", |
33 |
| - "karma-sinon": "1.0.5", |
34 |
| - "karma-spec-reporter": "0.0.26", |
35 |
| - "karma-webpack": "^1.7.0", |
36 |
| - "phantomjs-prebuilt": "^2.1.10", |
| 30 | + "jest": "^17.0.3", |
| 31 | + "jest-cli": "^17.0.3", |
37 | 32 | "react-addons-test-utils": "^15.3.0",
|
38 | 33 | "sinon": "1.17.4",
|
39 | 34 | "source-map-loader": "0.1.5",
|
|
44 | 39 | "webpack": "^1.13.1",
|
45 | 40 | "webpack-fail-plugin": "^1.0.5",
|
46 | 41 | "zakalwe": "https://github.com/rjz/zakalwe.git"
|
| 42 | + }, |
| 43 | + "jest": { |
| 44 | + "moduleFileExtensions": [ |
| 45 | + "ts", |
| 46 | + "tsx", |
| 47 | + "js" |
| 48 | + ], |
| 49 | + "transform": { |
| 50 | + "^.+\\.(ts|tsx)$": "<rootDir>/preprocessor.js" |
| 51 | + }, |
| 52 | + "testRegex": "/__tests__/.*\\.(ts|tsx|js)$" |
47 | 53 | }
|
48 | 54 | }
|
0 commit comments