Skip to content

Commit

Permalink
fix(cli) let cli tests run with robot tokens (#5715)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge authored Feb 12, 2024
1 parent 117834e commit 04c30fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@sanity/cli/test/basics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down

0 comments on commit 04c30fb

Please sign in to comment.