Run test in apollo-datasource-rest as part of monorepo tests

This commit is contained in:
Martijn Walraven 2018-06-18 11:57:19 +02:00
parent da2c95c410
commit 7496eb034d
2 changed files with 4 additions and 4 deletions

View file

@ -6,15 +6,15 @@
"url": "git+https://github.com/apollographql/apollo-server.git"
},
"scripts": {
"compile": "lerna exec -- npm run compile",
"compile": "lerna run -- compile",
"lint": "prettier-check --ignore-path .gitignore \"{docs/{,source/**},.,packages/**,test}/{*.js,*.ts}\"",
"lint-fix": "prettier --write --ignore-path .gitignore \"{docs/{,source/**},.,packages/**,test}/{*.js,*.ts}\"",
"prebootstrap": "npm install",
"postinstall": "lerna bootstrap",
"pretest": "npm run compile",
"test": "npm run testonly --",
"test": "npm run testonly",
"posttest": "npm run lint",
"testonly": "mocha --reporter spec --full-trace --timeout 5000 ./test/tests.js",
"testonly": "lerna run -- test && mocha --reporter spec --full-trace --timeout 5000 ./test/tests.js",
"coverage": "istanbul cover -x \"*.test.js\" _mocha -- --timeout 5000 --full-trace --reporter dot ./test/tests.js",
"pretravis": "npm run compile",
"travis": "istanbul cover -x \"*.test.js\" _mocha -- --timeout 5000 --full-trace ./test/tests.js",

View file

@ -15,7 +15,7 @@
"clean": "rm -rf lib",
"compile": "tsc",
"prepublish": "npm run clean && npm run compile",
"test": "jest --verbose"
"test": "jest"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",