diff --git a/apps/scandic-web/netlify.toml b/apps/scandic-web/netlify.toml index 46f1089dd..fb76472da 100644 --- a/apps/scandic-web/netlify.toml +++ b/apps/scandic-web/netlify.toml @@ -1,13 +1,13 @@ [build] -command = "yarn build" +command = "yarn test && yarn build" publish = "apps/scandic-web/.next" ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF apps/scandic-web packages/common packages/trpc packages/design-system packages/typescript-config" [context.branch-deploy] -command = "yarn build" +command = "yarn test && yarn build" [context.deploy-preview] -command = "yarn build" +command = "yarn test && yarn build" # [[plugins]] # package = "netlify-plugin-cypress" diff --git a/packages/booking-flow/package.json b/packages/booking-flow/package.json index 6cd6a8a42..450016a69 100644 --- a/packages/booking-flow/package.json +++ b/packages/booking-flow/package.json @@ -7,7 +7,7 @@ "check-types": "tsc --noEmit", "lint": "eslint . --max-warnings 0 && tsc --noEmit", "lint:fix": "eslint . --fix && tsc --noEmit", - "test": "vitest run", + "test": "vitest run --passWithNoTests", "test:watch": "vitest" }, "exports": { diff --git a/packages/design-system/package.json b/packages/design-system/package.json index 73562a054..283955a27 100644 --- a/packages/design-system/package.json +++ b/packages/design-system/package.json @@ -126,7 +126,7 @@ "lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --fix --max-warnings 0 && tsc", "storybook": "yarn run generate && storybook dev -p 6006", "build-storybook": "storybook build", - "test": "vitest --watch=false", + "test": "vitest run --passWithNoTests", "test:watch": "vitest", "prepack": "yarn run build", "prepare": "husky && yarn run build",