Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Apr 22, 2020
1 parent a32c8e6 commit 4ad4479
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2,111 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"mongodb-core": "^3.2.7",
"mysql": "^2.18.1",
"mysql2": "^2.1.0",
"pg": "^8.0.2",
"pg": "^7.18.2",
"redis": "^3.0.2",
"vue": "^2.6.11",
"vue-server-renderer": "^2.6.11"
Expand Down
11 changes: 9 additions & 2 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ trap "exit" INT
set -e
npm run build

#### Unit tests

$MOCHA ./test/autoExit.spec.ts
$MOCHA ./test/api.spec.ts
$MOCHA ./test/metrics/http.spec.ts
Expand Down Expand Up @@ -51,10 +53,15 @@ $MOCHA src/census/plugins/__tests__/mysql.spec.ts
$MOCHA src/census/plugins/__tests__/mysql2.spec.ts
$MOCHA src/census/plugins/__tests__/ioredis.spec.ts
$MOCHA src/census/plugins/__tests__/vue.spec.ts
$MOCHA src/census/plugins/__tests__/pg.spec.ts
$MOCHA src/census/plugins/__tests__/express.spec.ts
$MOCHA src/census/plugins/__tests__/net.spec.ts
$MOCHA src/census/plugins/__tests__/redis.spec.ts

SUPV14=`node -e "require('semver').gte(process.versions.node, '14.0.0') ? console.log('>=14') : console.log('>6')"`

# $MOCHA ./test/features/profiling.spec.ts
if [ $SUPV14 == '>=14' ]; then
exit
fi

$MOCHA src/census/plugins/__tests__/pg.spec.ts
#$MOCHA ./test/features/profiling.spec.ts
Loading

0 comments on commit 4ad4479

Please # to comment.