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