From 1d67425b7184299ef2219b4113b95f1d74fb9ada Mon Sep 17 00:00:00 2001 From: Kar Rui Lau Date: Wed, 9 Oct 2024 17:28:22 +0800 Subject: [PATCH] fix: use -- to correctly pass coverage flag to vitest --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b53e9235..3dae5f37 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "test:vitest": "dotenv -e .env.test vitest run", "test-dev:vitest": "dotenv -e .env.test vitest", "test:e2e": "dotenv -e .env.test playwright test", - "test-ci:coverage": "dotenv -e .env.test vitest run --coverage", + "test-ci:coverage": "dotenv -e .env.test vitest run -- --coverage", "test-ci:e2e": "start-server-and-test start http://127.0.0.1:3000 test:e2e", "test-dev:e2e": "start-server-and-test dev http://127.0.0.1:3000 test:e2e", "load-test:build": "webpack --config tests/load/webpack.config.js",