From e541c2b396a3d9c78bee9184a5e48073e9d97a03 Mon Sep 17 00:00:00 2001 From: Gethin Webster Date: Wed, 12 Jun 2024 13:37:02 +0200 Subject: [PATCH] Try waiting for preview server --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index dc1cea8..69993a9 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,9 @@ "prepare": "husky install", "test:unit": "vitest run --config vite.config.unit.mjs", "test:functional": "run-p -r preview test:functional:vitest", - "test:functional:vitest": "vitest run --config vite.config.e2e-functional.mjs", + "test:functional:vitest": "delay 1 && vitest run --config vite.config.e2e-functional.mjs", "test:visual": "run-p -r preview test:visual:vitest", - "test:visual:vitest": "vitest run --config vite.config.e2e-visual.mjs", + "test:visual:vitest": "delay 1 && vitest run --config vite.config.e2e-visual.mjs", "test:visual:update": "UPDATE_SCREENSHOTS=true npm run test:visual", "pretest": "tsc -p tsconfig.unit.json && tsc -p tsconfig.e2e.json", "test": "run-s lint test:unit test:functional", @@ -74,6 +74,7 @@ "@vitest/coverage-v8": "^1.4.0", "chokidar-cli": "^3.0.0", "deep-freeze-es6": "^1.4.1", + "delay-cli": "^2.0.0", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-header": "^3.1.1",