|
35 | 35 | "scripts": { |
36 | 36 | "clear": "rm -Rf tmp", |
37 | 37 | "test": "npm run eslint && cross-env NODE_ENV=test nyc --reporter=text-summary npm run mocha", |
| 38 | + "test:mongo": "npm run eslint && cross-env NODE_ENV=test nyc --reporter=text-summary npm run mocha:mongo", |
38 | 39 | "test:coverage": "npm run eslint && cross-env NODE_ENV=test nyc --reporter=lcovonly --reporter=text-summary npm run mocha", |
39 | 40 | "eslint": "eslint server/. test/. --config .eslintrc.json", |
40 | 41 | "start": "concurrently 'mongod' 'wait-on tcp:27017 && cross-env NODE_ENV=production node server/'", |
41 | 42 | "start:win": "concurrently \"mongod\" \"wait-on tcp:27017 &&SET NODE_ENV=production&& node server/\"", |
42 | | - "dev:debug": "npm run clear && concurrently '$npm_package_config_mongoDev' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon --inspect server/'", |
43 | | - "dev": "npm run clear && concurrently '$npm_package_config_mongoDev' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon server/'", |
| 43 | + "dev:debug": "npm run clear && concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon --inspect server/'", |
| 44 | + "dev": "npm run clear && concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon server/'", |
44 | 45 | "dev:local": "sh scripts/run-local.sh", |
45 | 46 | "dev:noseed": "concurrently 'mongod --dbpath data' 'wait-on tcp:27017 && NODE_ENV=development DEBUG=feathers nodemon server/'", |
46 | 47 | "dev:win": "npm run clear && concurrently \"mongod --dbpath /data/db\" \"wait-on tcp:27017&&cross-env NODE_ENV=development&&cross-env DEBUG=feathers&& nodemon --inspect server/\"", |
47 | | - "mocha": "npm run clear && $npm_package_config_concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && NODE_ENV=test $npm_package_config_mocha'" |
| 48 | + "mocha": "npm run clear && $npm_package_config_mocha", |
| 49 | + "mocha:mongo": "$npm_package_config_concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && npm run mocha'" |
48 | 50 | }, |
49 | 51 | "config": { |
50 | 52 | "mongoDev": "mongod --dbpath data --quiet", |
51 | | - "mocha": "node_modules/mocha/bin/_mocha test/ --recursive --timeout 10000 --exit", |
| 53 | + "mocha": "cross-env NODE_ENV=test node_modules/mocha/bin/_mocha test/ --recursive --timeout 10000 --exit", |
52 | 54 | "concurrently": "concurrently --kill-others --success first" |
53 | 55 | }, |
54 | 56 | "dependencies": { |
|
0 commit comments