Merge pull request #1702 from pdeszynski/faster-tests

chore(tests): Changed default tests to use mocha directly
This commit is contained in:
Umed Khudoiberdiev 2018-03-09 18:40:14 +05:00 committed by GitHub
commit 4dd38b50ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2767 additions and 55 deletions

View File

@ -17,5 +17,8 @@ before_script:
- docker-compose up -d
- npm run setup:config
script:
- npm run test-ci
after_success:
- bash <(curl -s https://codecov.io/bash)

2801
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -59,11 +59,14 @@
"gulp-typescript": "^3.2.2",
"gulp-uglify": "^3.0.0",
"gulpclass": "^0.1.2",
"husky": "^0.14.3",
"lint-staged": "^7.0.0",
"mocha": "^5.0.1",
"mongodb": "^2.2.33",
"mssql": "^4.0.4",
"mysql": "^2.15.0",
"mysql2": "^1.4.1",
"oracledb": "^2.0.15",
"pg": "^7.4.0",
"redis": "^2.8.0",
"remap-istanbul": "^0.9.5",
@ -73,11 +76,10 @@
"source-map-support": "^0.5.3",
"sql.js": "^0.4.0",
"sqlite3": "^3.1.13",
"ts-node": "^3.3.0",
"ts-node": "^5.0.0",
"tslint": "^5.6.0",
"tslint-stylish": "^2.1.0",
"typescript": "^2.7.1",
"oracledb": "^2.0.15"
"typescript": "^2.7.1"
},
"dependencies": {
"app-root-path": "^2.0.1",
@ -93,8 +95,16 @@
"yargonaut": "^1.1.2",
"yargs": "^9.0.1"
},
"lint-staged": {
"*.ts": [
"tslint --fix",
"git add"
]
},
"scripts": {
"test": "gulp ci-tests",
"precommit": "lint-staged",
"test-ci": "gulp ci-tests",
"test": "mocha -r ts-node/register --file test/utils/test-setup.ts --bail './test/**/*.ts'",
"compile": "tsc",
"setup:config": "gulp createTravisOrmConfig",
"package": "gulp package"