fix(ci): set NODE_OPTIONS=--unhandled-rejections=warn (#1522)

* ci:add node 16 to matrix

* fix(ci):set NODE_OPTIONS=--unhandled-rejections=warn
This commit is contained in:
Sepush 2021-11-06 02:27:38 +08:00 committed by GitHub
parent 890f3f4515
commit ce90d253e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:

View File

@ -20,7 +20,7 @@
"format:code": "prettier --write \"(src|demo)/**/*.(vue|js)\"",
"format:md": "prettier --write --parser markdown --prose-wrap never \"(src|demo)/**/*.md\"",
"test": "cross-env NODE_ENV=test jest --collectCoverage=false",
"test:cov": "cross-env NODE_ENV=test jest",
"test:cov": "cross-env NODE_ENV=test NODE_OPTIONS=--unhandled-rejections=warn jest",
"test:watch": "cross-env NODE_ENV=test jest ---watch --verbose --coverage",
"gen-version": "node scripts/gen-version",
"release-changelog": "node scripts/release-changelog",