From 04c30fbd540a1786dc14cca01d844b8a9ac8073f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rge=20N=C3=A6ss?= Date: Mon, 12 Feb 2024 16:23:59 +0100 Subject: [PATCH] fix(cli) let cli tests run with robot tokens (#5715) --- packages/@sanity/cli/test/basics.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/@sanity/cli/test/basics.test.ts b/packages/@sanity/cli/test/basics.test.ts index 728e9581757..049afb5d977 100644 --- a/packages/@sanity/cli/test/basics.test.ts +++ b/packages/@sanity/cli/test/basics.test.ts @@ -11,7 +11,9 @@ describeCliTest('CLI: basic commands', () => { testConcurrent('debug', async () => { const result = await runSanityCmdCommand(version, ['debug']) - expect(result.stdout).toContain(await getCliUserEmail()) + expect(result.stdout).toContain( + `Email: \x1B[1m${(await getCliUserEmail()) || 'null'}\x1B[22m`, + ) expect(result.code).toBe(0) })