From b6b7ebac8d480d15715455123ac67b58bf863ea8 Mon Sep 17 00:00:00 2001 From: Matthew Corner Date: Sat, 3 Feb 2024 20:47:42 +0000 Subject: [PATCH] Install browser dependencies --- package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 536b24dab..8ba5e607c 100644 --- a/package.json +++ b/package.json @@ -20,9 +20,8 @@ "storybook:serve:start": "pm2 start ./serve-storybook.js --name storybook", "storybook:serve:stop": "pm2 delete storybook", "test": "run-s test:unit test:lint test:playwright", - "test:playwright": "pnpm run storybook:build && pnpm run storybook:serve:start && npx playwright test && pnpm run storybook:serve:stop", - "pretest:playwright": "npx playwright install --with-deps", - "test:playwright:headed": "npx playwright install --with-deps && pnpm run storybook:build && pnpm run storybook:serve:start && npx playwright test --headed && pnpm run storybook:serve:stop", + "test:playwright": "pnpm exec playwright install --with-deps && pnpm run storybook:build && pnpm run storybook:serve:start && pnpm exec playwright test && pnpm run storybook:serve:stop", + "test:playwright:headed": "pnpm exec playwright install --with-deps && pnpm run storybook:build && pnpm run storybook:serve:start && pnpm exec playwright test --headed && pnpm run storybook:serve:stop", "test:lint": "eslint ./src", "test:unit": "vitest --run --coverage", "test:watch": "vitest",