From 352b9f8de7d0974dd3e6c875c17b67aeceaeab4b Mon Sep 17 00:00:00 2001 From: SoniaSandler <66797193+SoniaSandler@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:15:32 -0400 Subject: [PATCH] chore: add website testing to testing scripts (#8850) * chore: add website testing to testing scripts Signed-off-by: Sonia Sandler --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4b40ffe48..f94625181 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "compile:pull-request": "cross-env MODE=production npm run build && electron-builder build --publish never --config .electron-builder.config.cjs", "compile:current": "cross-env MODE=production npm run build && electron-builder build --config .electron-builder.config.cjs", "test": "npm run test:unit && npm run test:e2e", - "test:unit": "npm run test:main && npm run test:preload && npm run test:preload-docker-extension && npm run test:preload-webview && npm run test:ui && npm run test:renderer && npm run test:scripts:stylesheet && npm run test:tools && npm run test:extensions", + "test:unit": "npm run test:main && npm run test:preload && npm run test:preload-docker-extension && npm run test:preload-webview && npm run test:ui && npm run test:renderer && npm run test:scripts:stylesheet && npm run test:tools && npm run test:extensions && npm run test:website", "test:e2e": "npm run test:e2e:build && npm run test:e2e:run", "test:e2e:build": "cross-env NODE_ENV=development MODE=development DEBUG=pw:browser npm run build", "test:e2e:run": "xvfb-maybe --auto-servernum --server-args='-screen 0 1280x960x24' -- npx playwright test tests/playwright/src/specs/ --grep-invert @update-install", @@ -65,6 +65,7 @@ "test:tools": "vitest run tools --passWithNoTests --coverage", "test:scripts:stylesheet": "vitest run ./scripts/generate-stylesheet.spec.ts --passWithNoTests", "test:watch": "vitest watch", + "test:website": "vitest run -r website --passWithNoTests --coverage", "watch": "node scripts/watch.mjs", "format:check": "prettier --cache --check \"{extensions,packages,tests,types,tools,website-argos}/**/*.{ts,svelte}\" \"extensions/*/scripts/*.{ts,js}\" \"website/**/*.{md,js}\" \"website/src/**/*.{css,tsx}\"", "format:fix": "prettier --cache --write \"{extensions,packages,tests,types,tools,website-argos}/**/*.{ts,svelte}\" \"extensions/*/scripts/*.{ts,js}\" \"website/**/*.{md,js}\" \"website/src/**/*.{css,tsx}\"",