From 360b5a6f2aa6fa14232cd54935a5219f175eade0 Mon Sep 17 00:00:00 2001 From: Lectom Date: Mon, 11 May 2026 13:28:53 +0900 Subject: [PATCH] =?UTF-8?q?vitest=20=ED=83=80=EC=9E=85=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adminfront/tsconfig.app.json | 3 ++- adminfront/vite.config.ts | 1 + devfront/tsconfig.app.json | 3 ++- orgfront/tsconfig.app.json | 3 ++- test/staging_frontend_deploy_policy_test.sh | 7 +++++++ 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/adminfront/tsconfig.app.json b/adminfront/tsconfig.app.json index ab4554d1..91425f60 100644 --- a/adminfront/tsconfig.app.json +++ b/adminfront/tsconfig.app.json @@ -24,5 +24,6 @@ "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true }, - "include": ["src"] + "include": ["src"], + "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"] } diff --git a/adminfront/vite.config.ts b/adminfront/vite.config.ts index b0d0376e..ee24ae9f 100644 --- a/adminfront/vite.config.ts +++ b/adminfront/vite.config.ts @@ -12,6 +12,7 @@ export default defineConfig({ "/tmp/baron-sso-adminfront-vite-cache", build: { outDir: buildOutDir, + emptyOutDir: true, }, server: { host: "127.0.0.1", diff --git a/devfront/tsconfig.app.json b/devfront/tsconfig.app.json index a9b5a59c..68025a7f 100644 --- a/devfront/tsconfig.app.json +++ b/devfront/tsconfig.app.json @@ -24,5 +24,6 @@ "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true }, - "include": ["src"] + "include": ["src"], + "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"] } diff --git a/orgfront/tsconfig.app.json b/orgfront/tsconfig.app.json index a9b5a59c..68025a7f 100644 --- a/orgfront/tsconfig.app.json +++ b/orgfront/tsconfig.app.json @@ -24,5 +24,6 @@ "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true }, - "include": ["src"] + "include": ["src"], + "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"] } diff --git a/test/staging_frontend_deploy_policy_test.sh b/test/staging_frontend_deploy_policy_test.sh index 31a52caa..0ee89481 100644 --- a/test/staging_frontend_deploy_policy_test.sh +++ b/test/staging_frontend_deploy_policy_test.sh @@ -23,10 +23,12 @@ staging_pull=".gitea/workflows/staging_code_pull.yml" pull_compose="docker/staging_pull_compose.template.yaml" devfront_vite="devfront/vite.config.ts" orgfront_vite="orgfront/vite.config.ts" +adminfront_vite="adminfront/vite.config.ts" for file in \ "$staging_pull" \ "$pull_compose" \ + "$adminfront_vite" \ "$devfront_vite" \ "$orgfront_vite" do @@ -53,12 +55,17 @@ assert_contains "$pull_compose" "baron_orgfront" assert_contains "$pull_compose" "http://127.0.0.1:5173/" assert_contains "$pull_compose" "http://127.0.0.1:5175/" +assert_contains "$adminfront_vite" "/tmp/baron-sso-adminfront-dist" +assert_contains "$adminfront_vite" "/tmp/baron-sso-adminfront-vite-cache" +assert_contains "adminfront/tsconfig.app.json" '"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"]' assert_contains "$devfront_vite" "/tmp/baron-sso-devfront-dist" assert_contains "$devfront_vite" "/tmp/baron-sso-devfront-vite-cache" assert_contains "$devfront_vite" "hostFromUrl(process.env.DEVFRONT_URL)" assert_contains "$devfront_vite" "process.env.DEVFRONT_ALLOWED_HOSTS" +assert_contains "devfront/tsconfig.app.json" '"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"]' assert_contains "$orgfront_vite" "/tmp/baron-sso-orgfront-dist" assert_contains "$orgfront_vite" "/tmp/baron-sso-orgfront-vite-cache" assert_contains "$orgfront_vite" '"sorg.hmac.kr"' +assert_contains "orgfront/tsconfig.app.json" '"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"]' echo "staging frontend deploy policy checks passed"