chore: add unit test to scandic web pipeline

This commit is contained in:
Christian Andolf
2025-06-27 13:40:55 +02:00
parent ff40ef72c4
commit a3645da8c4
3 changed files with 5 additions and 5 deletions

View File

@@ -1,13 +1,13 @@
[build] [build]
command = "yarn build" command = "yarn test && yarn build"
publish = "apps/scandic-web/.next" 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" 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] [context.branch-deploy]
command = "yarn build" command = "yarn test && yarn build"
[context.deploy-preview] [context.deploy-preview]
command = "yarn build" command = "yarn test && yarn build"
# [[plugins]] # [[plugins]]
# package = "netlify-plugin-cypress" # package = "netlify-plugin-cypress"

View File

@@ -7,7 +7,7 @@
"check-types": "tsc --noEmit", "check-types": "tsc --noEmit",
"lint": "eslint . --max-warnings 0 && tsc --noEmit", "lint": "eslint . --max-warnings 0 && tsc --noEmit",
"lint:fix": "eslint . --fix && tsc --noEmit", "lint:fix": "eslint . --fix && tsc --noEmit",
"test": "vitest run", "test": "vitest run --passWithNoTests",
"test:watch": "vitest" "test:watch": "vitest"
}, },
"exports": { "exports": {

View File

@@ -126,7 +126,7 @@
"lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --fix --max-warnings 0 && tsc", "lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --fix --max-warnings 0 && tsc",
"storybook": "yarn run generate && storybook dev -p 6006", "storybook": "yarn run generate && storybook dev -p 6006",
"build-storybook": "storybook build", "build-storybook": "storybook build",
"test": "vitest --watch=false", "test": "vitest run --passWithNoTests",
"test:watch": "vitest", "test:watch": "vitest",
"prepack": "yarn run build", "prepack": "yarn run build",
"prepare": "husky && yarn run build", "prepare": "husky && yarn run build",