|
5 | 5 | "main": "index.js", |
6 | 6 | "scripts": { |
7 | 7 | "build": "./node_modules/.bin/babel ./src/ReactHTMLTableToExcel.jsx -o index.js", |
8 | | - "prepublish": "npm run build" |
| 8 | + "prepublish": "npm run build", |
| 9 | + "client:test": "NODE_ENV=test jest", |
| 10 | + "client:test:watch": "NODE_ENV=test jest --watch" |
9 | 11 | }, |
10 | 12 | "repository": { |
11 | 13 | "type": "git", |
|
24 | 26 | "url": "https://github.com/zsusac/ReactHTMLTableToExcel/issues" |
25 | 27 | }, |
26 | 28 | "homepage": "https://github.com/zsusac/ReactHTMLTableToExcel#readme", |
| 29 | + "jest": { |
| 30 | + "rootDir": "./", |
| 31 | + "moduleNameMapper": { |
| 32 | + "^.+\\.(css|less)$": "<rootDir>/CSSStub.js" |
| 33 | + }, |
| 34 | + "collectCoverage": true, |
| 35 | + "coverageDirectory": "<rootDir>/../../coverage", |
| 36 | + "verbose": true, |
| 37 | + "coveragePathIgnorePatterns": [ |
| 38 | + "<rootDir>/../../node_modules/" |
| 39 | + ] |
| 40 | + }, |
27 | 41 | "devDependencies": { |
28 | 42 | "babel-cli": "^6.24.1", |
29 | 43 | "babel-eslint": "^7.2.3", |
30 | 44 | "babel-preset-es2015": "^6.24.1", |
31 | 45 | "babel-preset-react": "^6.24.1", |
32 | 46 | "babel-preset-stage-0": "^6.24.1", |
| 47 | + "chai": "^3.5.0", |
| 48 | + "chai-enzyme": "^0.6.1", |
| 49 | + "enzyme": "^2.8.2", |
33 | 50 | "eslint": "^3.19.0", |
34 | 51 | "eslint-config-airbnb": "^14.1.0", |
35 | 52 | "eslint-plugin-import": "^2.2.0", |
36 | 53 | "eslint-plugin-jsx-a11y": "^5.0.1", |
37 | 54 | "eslint-plugin-react": "^7.0.0", |
38 | | - "react": "^15.5.4" |
| 55 | + "jest": "^20.0.1", |
| 56 | + "react": "^15.5.4", |
| 57 | + "react-dom": "^15.5.4", |
| 58 | + "react-test-renderer": "^15.5.4", |
| 59 | + "sinon": "^2.2.0" |
39 | 60 | }, |
40 | | - "dependencies": {} |
| 61 | + "dependencies": { |
| 62 | + "prop-types": "^15.5.10" |
| 63 | + } |
41 | 64 | } |
0 commit comments