From cd7c2fd63f7631e3587ecd67e2d768294c7ee777 Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Wed, 4 Sep 2024 05:38:13 +0800 Subject: [PATCH] test: always run TS-next test for `test:update` script --- packages/tsc/tests/typecheck.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/tsc/tests/typecheck.spec.ts b/packages/tsc/tests/typecheck.spec.ts index 3b95b9cbd0..7bd02bbefa 100644 --- a/packages/tsc/tests/typecheck.spec.ts +++ b/packages/tsc/tests/typecheck.spec.ts @@ -16,7 +16,10 @@ describe(`vue-tsc`, () => { `); }); - test.skipIf(!process.env.GITHUB_ACTIONS)(`TypeScript - Next`, () => { + const isUpdateEvent = process.env.npm_lifecycle_event === 'test:update'; + const isGithubActions = !!process.env.GITHUB_ACTIONS; + + test.skipIf(!isUpdateEvent && isGithubActions)(`TypeScript - Next`, () => { expect( getTscOutput('next') ).toMatchInlineSnapshot(`