|
45 | 45 | "babel-plugin-transform-regenerator": "^6.24.1", |
46 | 46 | "babel-plugin-transform-runtime": "^6.23.0", |
47 | 47 | "babel-preset-es2015": "^6.24.1", |
48 | | - "chai": "3.5.0", |
49 | | - "chai-as-promised": "6.0.0", |
50 | | - "chai-spies": "0.7.1", |
51 | 48 | "cz-conventional-changelog": "^2.0.0", |
52 | 49 | "eslint": "^3.19.0", |
53 | 50 | "eslint-config-airbnb-base": "^11.2.0", |
|
57 | 54 | "graphql": "^0.10.1", |
58 | 55 | "graphql-compose": "^1.19.3", |
59 | 56 | "graphql-compose-connection": "^2.1.4", |
60 | | - "mocha": "^3.4.2", |
| 57 | + "jest": "^20.0.4", |
| 58 | + "jest-babel": "^1.0.1", |
61 | 59 | "mongodb-memory-server": "^1.1.1", |
62 | 60 | "mongoose": "^4.10.4", |
63 | | - "nyc": "^11.0.2", |
64 | 61 | "rimraf": "^2.6.1", |
65 | | - "sane": "^1.7.0", |
66 | 62 | "semantic-release": "^6.3.6" |
67 | 63 | }, |
68 | 64 | "config": { |
|
82 | 78 | "text" |
83 | 79 | ] |
84 | 80 | }, |
| 81 | + "jest": { |
| 82 | + "roots": [ |
| 83 | + "<rootDir>/src" |
| 84 | + ] |
| 85 | + }, |
85 | 86 | "scripts": { |
86 | 87 | "build": "npm run build-cjs && npm run build-flow && npm run build-es", |
87 | 88 | "build-cjs": "rimraf lib && babel src --ignore __tests__,__mocks__ -d lib", |
88 | 89 | "build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es", |
89 | 90 | "build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done", |
90 | | - "coverage": "nyc npm run test", |
| 91 | + "coverage": "jest --coverage", |
91 | 92 | "lint": "eslint src test *.js", |
92 | | - "test": "babel-node ./node_modules/.bin/_mocha --compilers js:babel-core/register --reporter dot --timeout 20000 --require ./resources/mocha-bootload src/**/__tests__/**/*-test.js", |
93 | | - "watch": "babel-node ./resources/watch.js", |
| 93 | + "test": "jest", |
| 94 | + "watch": "jest --watch", |
94 | 95 | "link": "yarn build && yarn link graphql && yarn link graphql-compose && yarn link graphql-compose-connection && yarn link mongoose && yarn link", |
95 | 96 | "unlink": "yarn unlink graphql && yarn unlink graphql-compose && yarn unlink graphql-compose-connection && yarn unlink mongoose && yarn add graphql graphql-compose graphql-compose-connection mongoose", |
96 | 97 | "semantic-release": "semantic-release pre && npm publish && semantic-release post" |
|
0 commit comments