From dcf8c1655d0c022d7b2d159e29ffa2b5bf3bce83 Mon Sep 17 00:00:00 2001 From: bot-backend Date: Mon, 24 Aug 2026 00:49:12 +0300 Subject: [PATCH] =?UTF-8?q?fix(tests):=20=D0=B2=D0=BE=D1=81=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2=D0=B8=D1=82=D1=8C=20=D1=8D=D0=BA=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?\n=20=D0=B2=20join=20=E2=80=94=20TS1002?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Мой предыдущий коммит попал в файлы через шелл-heredoc, который съел экранирование: вместо двух символов backslash+n в литерал уехал НАСТОЯЩИЙ перевод строки, и обе строки стали незакрытыми (TS1002 Unterminated string literal). Именно поэтому frontend-checks остался красным, хотя сама логика чтения объединённого конфига верна. Refs #3059 --- .../src/app/mera-public/__tests__/public-perimeter.test.ts | 3 +-- .../components/auth/__tests__/RouteGuard.publicPaths.test.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tradein-mvp/frontend/src/app/mera-public/__tests__/public-perimeter.test.ts b/tradein-mvp/frontend/src/app/mera-public/__tests__/public-perimeter.test.ts index 202df462..5e7949c1 100644 --- a/tradein-mvp/frontend/src/app/mera-public/__tests__/public-perimeter.test.ts +++ b/tradein-mvp/frontend/src/app/mera-public/__tests__/public-perimeter.test.ts @@ -71,8 +71,7 @@ function readEffectiveCaddyConfig(repoRoot: string): string { .filter((f) => f.endsWith(".caddy")) .sort() .map((f) => readFileSync(path.join(sitesDir, f), "utf8")); - return [readFileSync(path.join(repoRoot, "Caddyfile"), "utf8"), ...siteFiles].join(" -"); + return [readFileSync(path.join(repoRoot, "Caddyfile"), "utf8"), ...siteFiles].join("\n"); } describe("короткие адреса публичного домена", () => { diff --git a/tradein-mvp/frontend/src/components/auth/__tests__/RouteGuard.publicPaths.test.ts b/tradein-mvp/frontend/src/components/auth/__tests__/RouteGuard.publicPaths.test.ts index 4dc18692..9991da62 100644 --- a/tradein-mvp/frontend/src/components/auth/__tests__/RouteGuard.publicPaths.test.ts +++ b/tradein-mvp/frontend/src/components/auth/__tests__/RouteGuard.publicPaths.test.ts @@ -35,8 +35,7 @@ function readEffectiveCaddyConfig(repoRoot: string): string { .filter((f) => f.endsWith(".caddy")) .sort() .map((f) => readFileSync(path.join(sitesDir, f), "utf8")); - return [readFileSync(path.join(repoRoot, "Caddyfile"), "utf8"), ...siteFiles].join(" -"); + return [readFileSync(path.join(repoRoot, "Caddyfile"), "utf8"), ...siteFiles].join("\n"); } describe("isPublicPath", () => {