|
31 | 31 | "babel-eslint": "^7.2.3", |
32 | 32 | "babel-plugin-transform-flow-strip-types": "^6.22.0", |
33 | 33 | "babel-plugin-transform-object-rest-spread": "^6.23.0", |
34 | | - "chai": "^4.0.1", |
35 | | - "chai-as-promised": "6.0.0", |
36 | | - "chai-spies": "0.7.1", |
37 | 34 | "babel-preset-env": "^1.5.1", |
38 | 35 | "cz-conventional-changelog": "^2.0.0", |
39 | 36 | "eslint": "^3.19.0", |
|
45 | 42 | "flow-bin": "^0.47.0", |
46 | 43 | "graphql": "^0.10.1", |
47 | 44 | "graphql-compose": "^1.19.4", |
48 | | - "mocha": "^3.4.2", |
49 | | - "nyc": "^10.3.2", |
| 45 | + "jest": "^20.0.4", |
50 | 46 | "prettier": "^1.4.2", |
51 | 47 | "rimraf": "^2.6.1", |
52 | | - "sane": "^1.7.0", |
53 | 48 | "semantic-release": "^6.3.2" |
54 | 49 | }, |
55 | 50 | "dependencies": {}, |
|
58 | 53 | "path": "./node_modules/cz-conventional-changelog" |
59 | 54 | } |
60 | 55 | }, |
61 | | - "nyc": { |
62 | | - "exclude": [ |
63 | | - "**/__mocks__/**", |
64 | | - "**/__tests__/**", |
65 | | - "resources", |
66 | | - "node_modules" |
67 | | - ], |
68 | | - "reporter": [ |
69 | | - "lcov", |
70 | | - "text" |
71 | | - ] |
72 | | - }, |
73 | 56 | "scripts": { |
74 | 57 | "build": "npm run build-cjs && npm run build-flow", |
75 | 58 | "build-cjs": "rimraf lib && babel src --ignore __tests__,__mocks__ -d lib", |
76 | 59 | "build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done", |
77 | | - "coverage": "nyc npm run test", |
| 60 | + "coverage": "jest --coverage", |
78 | 61 | "lint": "eslint src test *.js", |
79 | | - "test": "babel-node ./node_modules/.bin/_mocha --compilers js:babel-core/register --reporter dot --require ./resources/mocha-bootload src/**/__tests__/**/*-test.js", |
80 | | - "watch": "babel-node ./resources/watch.js", |
| 62 | + "test": "jest", |
| 63 | + "watch": "jest --watch", |
81 | 64 | "link": "yarn build && yarn link graphql-compose && yarn link", |
82 | 65 | "unlink": "yarn unlink graphql-compose && yarn add graphql-compose", |
83 | 66 | "semantic-release": "semantic-release pre && npm publish && semantic-release post" |
|
0 commit comments