chore: add unit test to scandic web pipeline
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user