From 7f820b2f7971cb30c0b5385b79bad6a5fd9a5084 Mon Sep 17 00:00:00 2001 From: Jan Kaifer Date: Tue, 3 Jan 2023 15:02:08 +0100 Subject: [PATCH] add testonly variants for all test modes and refactored "test" as alias of testheadless --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 087297c140685..4d529d7274735 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,10 @@ "test-dev": "cross-env NEXT_TEST_MODE=dev pnpm testheadless", "test-start": "cross-env NEXT_TEST_MODE=start pnpm testheadless", "test-deploy": "cross-env NEXT_TEST_MODE=deploy pnpm testheadless", - "test": "cross-env HEADLESS=true pnpm testonly", + "testonly-dev": "cross-env NEXT_TEST_MODE=dev pnpm testonly", + "testonly-start": "cross-env NEXT_TEST_MODE=start pnpm testonly", + "testonly-deploy": "cross-env NEXT_TEST_MODE=deploy pnpm testonly", + "test": "pnpm testheadless", "testonly": "pnpm jest --runInBand", "testheadless": "cross-env HEADLESS=true pnpm testonly", "genstats": "cross-env LOCAL_STATS=true node .github/actions/next-stats-action/src/index.js",