From 5eff3bf243151578385446c1a8c9c73163889fca Mon Sep 17 00:00:00 2001 From: tanhauhau Date: Fri, 14 Oct 2022 10:16:21 +0800 Subject: [PATCH] add test:integration --- .github/workflows/ci.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 337d2a89fe..fa88dc1e00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,7 +69,7 @@ jobs: - run: npm install env: SKIP_PREPARE: true - - run: npm test + - run: npm run test:integration env: CI: true Lint: diff --git a/package.json b/package.json index 40c8957b17..4e68a36978 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,8 @@ }, "types": "types/runtime/index.d.ts", "scripts": { - "test": "mocha --exit", + "test": "npm run test:integration && npm run test:unit", + "test:integration": "mocha --exit", "test:unit": "mocha --config .mocharc.unit.js --exit", "quicktest": "mocha --exit", "build": "rollup -c && npm run tsd",