From bbcd1402dcc2c4e781cb6793ce604b1f8a3d2da9 Mon Sep 17 00:00:00 2001 From: Francisco Solla Date: Sun, 27 Sep 2026 19:39:27 -0300 Subject: [PATCH] =?UTF-8?q?test(C234):=20d=C3=A1=2030s=20ao=20teste=20de?= =?UTF-8?q?=20bootstrap=20da=20CLI=20de=20=C3=ADndice=20(spawn=20do=20Payl?= =?UTF-8?q?oad=20no=20CI)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/faceCli.unit.spec.ts | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/tests/unit/faceCli.unit.spec.ts b/tests/unit/faceCli.unit.spec.ts index bc3ec53b..9e34b8d2 100644 --- a/tests/unit/faceCli.unit.spec.ts +++ b/tests/unit/faceCli.unit.spec.ts @@ -123,22 +123,18 @@ describe('faces:index write guards (C234)', () => { expect(output(result)).toContain('S3_BUCKET') }) - it( - 'reaches the payload bootstrap with the complete target declared', - () => { - const result = run(indexScript, ['--apply'], { - FACE_INDEX_CONFIRM: '1', - TEQO_ENV: 'production', - ...withS3, - }) + it('reaches the payload bootstrap with the complete target declared', () => { + const result = run(indexScript, ['--apply'], { + FACE_INDEX_CONFIRM: '1', + TEQO_ENV: 'production', + ...withS3, + }) - // No production database here: the run must fail while connecting (or - // right after), never with one of the write guards. The spawn boots - // Payload, so the unit default (5s) is not enough on CI runners. - expect(result.status).toBe(1) - expect(output(result)).not.toContain('FACE_INDEX_CONFIRM=1') - expect(output(result)).not.toContain('TEQO_ENV=') - }, - 30_000, - ) + // No production database here: the run must fail while connecting (or + // right after), never with one of the write guards. The spawn boots + // Payload, so the unit default (5s) is not enough on CI runners. + expect(result.status).toBe(1) + expect(output(result)).not.toContain('FACE_INDEX_CONFIRM=1') + expect(output(result)).not.toContain('TEQO_ENV=') + }, 30_000) })