fix(tests): восстановить экранирование \n в join — TS1002
All checks were successful
CI Trade-In / changes (pull_request) Successful in 8s
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI Trade-In / backend-tests (pull_request) Has been skipped
CI / changes (pull_request) Successful in 9s
CI Trade-In / browser-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Has been skipped
CI Trade-In / frontend-checks (pull_request) Successful in 1m4s

Мой предыдущий коммит попал в файлы через шелл-heredoc, который съел
экранирование: вместо двух символов backslash+n в литерал уехал НАСТОЯЩИЙ
перевод строки, и обе строки стали незакрытыми (TS1002 Unterminated
string literal). Именно поэтому frontend-checks остался красным, хотя сама
логика чтения объединённого конфига верна.

Refs #3059
This commit is contained in:
bot-backend 2026-08-24 00:49:12 +03:00
parent 87ffb5d621
commit dcf8c1655d
2 changed files with 2 additions and 4 deletions

View file

@ -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("короткие адреса публичного домена", () => {

View file

@ -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", () => {