mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 02:44:53 +00:00
single runs test against prod build
This commit is contained in:
@@ -3,5 +3,15 @@
|
|||||||
"service": "zitadel.settings.v2alpha.SettingsService",
|
"service": "zitadel.settings.v2alpha.SettingsService",
|
||||||
"method": "GetBrandingSettings",
|
"method": "GetBrandingSettings",
|
||||||
"out": {}
|
"out": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"service": "zitadel.settings.v2alpha.SettingsService",
|
||||||
|
"method": "GetLegalAndSupportSettings",
|
||||||
|
"out": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"service": "zitadel.settings.v2alpha.SettingsService",
|
||||||
|
"method": "GetPasswordComplexitySettings",
|
||||||
|
"out": {}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
"test:watch": "concurrently --kill-others 'npm:test:unit:watch' 'npm:test:integration:watch'",
|
"test:watch": "concurrently --kill-others 'npm:test:unit:watch' 'npm:test:integration:watch'",
|
||||||
"test:unit": "jest --config ./__test__/jest.config.ts",
|
"test:unit": "jest --config ./__test__/jest.config.ts",
|
||||||
"test:unit:watch": "pnpm test:unit --watch",
|
"test:unit:watch": "pnpm test:unit --watch",
|
||||||
"test:integration": "pnpm mock:build && concurrently --group --names 'mock,test' --success command-test --kill-others 'pnpm:mock' 'ZITADEL_API_URL=http://localhost:22222 start-server-and-test dev http://localhost:3000 \"test:integration:run\"'",
|
"test:integration": "export ZITADEL_API_URL=http://localhost:22222; pnpm mock:build && concurrently --group --names 'mock,test' --success command-test --kill-others 'pnpm:mock' 'start-server-and-test start http://localhost:3000 \"test:integration:run\"'",
|
||||||
"test:integration:watch": "concurrently --names 'mock,test' --kill-others 'pnpm:mock' 'ZITADEL_API_URL=http://localhost:22222 start-server-and-test dev http://localhost:3000 \"pnpm nodemon -e js,jsx,ts,tsx,css,scss --ignore \\\"__test__/**\\\" --exec \\\"pnpm test:integration:run\\\"\"'",
|
"test:integration:watch": "concurrently --names 'mock,test' --kill-others 'pnpm:mock' 'ZITADEL_API_URL=http://localhost:22222 start-server-and-test dev http://localhost:3000 \"pnpm nodemon -e js,jsx,ts,tsx,css,scss --ignore \\\"__test__/**\\\" --exec \\\"pnpm test:integration:run\\\"\"'",
|
||||||
"test:integration:run": "cypress run --config-file ./cypress/cypress.config.ts --quiet",
|
"test:integration:run": "cypress run --config-file ./cypress/cypress.config.ts --quiet",
|
||||||
"test:integration:open": "cypress open --config-file ./cypress/cypress.config.ts",
|
"test:integration:open": "cypress open --config-file ./cypress/cypress.config.ts",
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
"lint:fix": "prettier --write .",
|
"lint:fix": "prettier --write .",
|
||||||
"lint-staged": "lint-staged",
|
"lint-staged": "lint-staged",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"prestart": "build",
|
"prestart": "pnpm build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
"clean": "pnpm mock:destroy && rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
||||||
},
|
},
|
||||||
"git": {
|
"git": {
|
||||||
"pre-commit": "lint-staged"
|
"pre-commit": "lint-staged"
|
||||||
|
|||||||
@@ -1,40 +1,21 @@
|
|||||||
{
|
{
|
||||||
"extends": [
|
"extends": ["//"],
|
||||||
"//"
|
|
||||||
],
|
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"build": {
|
"build": {
|
||||||
"outputs": [
|
"outputs": ["dist/**", ".next/**", "!.next/cache/**"],
|
||||||
"dist/**",
|
"dependsOn": ["^build"]
|
||||||
".next/**",
|
|
||||||
"!.next/cache/**"
|
|
||||||
],
|
|
||||||
"dependsOn": [
|
|
||||||
"^build"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
"dependsOn": [
|
"dependsOn": ["@zitadel/server#build", "@zitadel/react#build"]
|
||||||
"@zitadel/server#build",
|
|
||||||
"@zitadel/react#build"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"test:integration": {
|
"test:integration": {
|
||||||
"dependsOn": [
|
"dependsOn": ["@zitadel/server#build", "@zitadel/react#build"]
|
||||||
"@zitadel/server#build",
|
|
||||||
"@zitadel/react#build"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"test:unit": {
|
"test:unit": {
|
||||||
"dependsOn": [
|
"dependsOn": ["@zitadel/server#build"]
|
||||||
"@zitadel/server#build"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"test:watch": {
|
"test:watch": {
|
||||||
"dependsOn": [
|
"dependsOn": ["@zitadel/server#build", "@zitadel/react#build"]
|
||||||
"@zitadel/server#build",
|
|
||||||
"@zitadel/react#build"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user