Translate Spanish text to English across docs and code

This commit is contained in:
Pandipipas
2026-02-24 00:37:48 +01:00
parent fdc013bdb7
commit 12b85e6579
13 changed files with 262 additions and 282 deletions
+15 -15
View File
@@ -31,7 +31,7 @@ function getBaseConfig(): AppRuntimeConfig {
};
}
test("startNodeCG valida instalación de NodeCG antes de arrancar", async () => {
test("startNodeCG validates NodeCG installation before starting", async () => {
const manager = createNodecgProcessManager({
isDev: true,
nodecgRootPath: "/fake/nodecg",
@@ -41,17 +41,17 @@ test("startNodeCG valida instalación de NodeCG antes de arrancar", async () =>
deps: {
pathExists: () => false,
spawnProcess: () => {
throw new Error("no debe intentar arrancar si la validación falla");
throw new Error("it must not try to start if validation fails");
},
},
});
await assert.rejects(async () => {
await manager.startNodecgProcess();
}, /No existe la carpeta NodeCG/);
}, /NodeCG folder does not exist/);
});
test("startNodeCG falla si no hay permisos de lectura/escritura", async () => {
test("startNodeCG fails when there are no read/write permissions", async () => {
const manager = createNodecgProcessManager({
isDev: true,
nodecgRootPath: "/fake/nodecg",
@@ -66,10 +66,10 @@ test("startNodeCG falla si no hay permisos de lectura/escritura", async () => {
await assert.rejects(async () => {
await manager.startNodecgProcess();
}, /Sin permisos de lectura\/escritura/);
}, /No read\/write permissions on NodeCG/);
});
test("waitForNodeCGReady resuelve cuando el endpoint responde 404", async () => {
test("waitForNodeCGReady resolves when endpoint returns 404", async () => {
const child = new MockChildProcess(4321);
const manager = createNodecgProcessManager({
isDev: true,
@@ -99,7 +99,7 @@ test("waitForNodeCGReady resuelve cuando el endpoint responde 404", async () =>
});
});
test("stopNodeCG envía SIGTERM y luego SIGKILL si el proceso no sale", async () => {
test("stopNodeCG sends SIGTERM and then SIGKILL if the process does not exit", async () => {
const child = new MockChildProcess(9999);
const timers: Array<() => void> = [];
const killSignals: Array<{ pid: number; signal: NodeJS.Signals }> = [];
@@ -147,7 +147,7 @@ test("stopNodeCG envía SIGTERM y luego SIGKILL si el proceso no sale", async ()
await stopPromise;
});
test("stopNodeCG reutiliza la misma promesa cuando se invoca en paralelo", async () => {
test("stopNodeCG reuses the same promise when invoked in parallel", async () => {
const child = new MockChildProcess(5555);
const manager = createNodecgProcessManager({
@@ -179,7 +179,7 @@ test("stopNodeCG reutiliza la misma promesa cuando se invoca en paralelo", async
await firstStop;
});
test("stopNodeCG normaliza timeout negativo a cero", async () => {
test("stopNodeCG normalizes negative timeout to zero", async () => {
const child = new MockChildProcess(7777);
const timeouts: number[] = [];
@@ -218,7 +218,7 @@ test("stopNodeCG normaliza timeout negativo a cero", async () => {
await stopPromise;
});
test("startNodeCG falla si el puerto ya está ocupado", async () => {
test("startNodeCG fails if the port is already in use", async () => {
const manager = createNodecgProcessManager({
isDev: true,
nodecgRootPath: "/fake/nodecg",
@@ -234,10 +234,10 @@ test("startNodeCG falla si el puerto ya está ocupado", async () => {
await assert.rejects(async () => {
await manager.startNodecgProcess();
}, /ya está en uso/);
}, /is already in use/);
});
test("waitForNodeCGReady expone diagnóstico cuando NodeCG sale antes de readiness", async () => {
test("waitForNodeCGReady exposes diagnostics when NodeCG exits before readiness", async () => {
const child = new MockChildProcess(4242);
const manager = createNodecgProcessManager({
isDev: true,
@@ -272,9 +272,9 @@ test("waitForNodeCGReady expone diagnóstico cuando NodeCG sale antes de readine
},
(error: unknown) => {
assert.ok(error instanceof Error);
assert.match(error.message, /NodeCG terminó antes de estar listo/);
assert.match(error.message, /Última salida registrada/);
assert.match(error.message, /Ruta NodeCG: \/fake\/nodecg/);
assert.match(error.message, /NodeCG exited before becoming ready/);
assert.match(error.message, /Last recorded exit/);
assert.match(error.message, /NodeCG path: \/fake\/nodecg/);
return true;
},
);