debug integration

This commit is contained in:
Elio Bischof
2025-07-24 01:59:16 +02:00
parent 9a21c6085a
commit 3eb01c1043
5 changed files with 47 additions and 15 deletions

View File

@@ -14,7 +14,7 @@
3001 3001
], ],
"onCreateCommand": "pnpm install --recursive", "onCreateCommand": "pnpm install --recursive",
"postAttachCommand": "pnpm turbo daemon clean; pnpm turbo @zitadel/login#dev test:integration:login:debug", "postAttachCommand": "pnpm turbo daemon clean || true; pnpm turbo test:integration:login:debug",
"customizations": { "customizations": {
"jetbrains": { "jetbrains": {
"settings": { "settings": {

View File

@@ -15,8 +15,8 @@
"test:unit": "vitest --run", "test:unit": "vitest --run",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next", "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next",
"test:integration:login": "cypress run", "test:integration:login": "DISPLAY='' cypress run",
"test:integration:login:debug": "cypress open", "test:integration:login:debug": "DISPLAY=:0 cypress open",
"test:acceptance": "dotenv -e ../login/.env.test.local playwright", "test:acceptance": "dotenv -e ../login/.env.test.local playwright",
"test:acceptance:setup": "cd ../.. && make login_test_acceptance_setup_env && NODE_ENV=test turbo run test:acceptance:setup:dev", "test:acceptance:setup": "cd ../.. && make login_test_acceptance_setup_env && NODE_ENV=test turbo run test:acceptance:setup:dev",
"test:acceptance:setup:dev": "cd ../.. && make login_test_acceptance_setup_dev" "test:acceptance:setup:dev": "cd ../.. && make login_test_acceptance_setup_dev"

View File

@@ -1,22 +1,51 @@
{ {
"extends": ["//"], "extends": [
"//"
],
"tasks": { "tasks": {
"build": { "build": {
"outputs": ["dist/**", ".next/**", "!.next/cache/**"], "outputs": [
"dependsOn": ["@zitadel/client#build"] "dist/**",
".next/**",
"!.next/cache/**"
],
"dependsOn": [
"@zitadel/client#build"
]
}, },
"build:login:standalone": { "build:login:standalone": {
"outputs": ["dist/**", ".next/**", "!.next/cache/**"], "outputs": [
"dependsOn": ["@zitadel/client#build"] "dist/**",
".next/**",
"!.next/cache/**"
],
"dependsOn": [
"@zitadel/client#build"
]
}, },
"dev": { "dev": {
"dependsOn": ["@zitadel/client#build"] "persistent": true,
"cache": false,
"dependsOn": [
"@zitadel/client#build"
]
}, },
"test": { "test": {
"dependsOn": ["@zitadel/client#build"] "dependsOn": [
"@zitadel/client#build"
]
}, },
"test:unit": { "test:unit": {
"dependsOn": ["@zitadel/client#build"] "dependsOn": [
"@zitadel/client#build"
]
},
"test:integration:login:debug": {
"persistent": true,
"cache": false,
"with": [
"dev"
]
} }
} }
} }

View File

@@ -1,7 +1,9 @@
{ {
"$schema": "https://turbo.build/schema.json", "$schema": "https://turbo.build/schema.json",
"ui": "tui", "ui": "tui",
"globalDependencies": ["**/.env.*local"], "globalDependencies": [
"**/.env.*local"
],
"globalEnv": [ "globalEnv": [
"DEBUG", "DEBUG",
"VERCEL_URL", "VERCEL_URL",
@@ -36,6 +38,7 @@
}, },
"start": {}, "start": {},
"test:unit": {}, "test:unit": {},
"test:integration:login": {},
"test:acceptance": {}, "test:acceptance": {},
"test:e2e": {}, "test:e2e": {},
"lint": {}, "lint": {},