We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a58620 commit c7fba38Copy full SHA for c7fba38
packages/@sanity/cli/test/basics.test.ts
@@ -50,8 +50,8 @@ describeCliTest('CLI: basic commands', () => {
50
51
testConcurrent('sanity --version', async () => {
52
const result = await runSanityCmdCommand(version, ['--version'])
53
- // If the help text isn't returned, the result should only be one line
54
- expect(result.stdout.split('\n')).toHaveLength(1)
+ // If the help text isn't returned, the result should only be one line with text
+ expect(result.stdout.split('\n').filter((l) => l.length > 0)).toHaveLength(1)
55
expect(result.code).toBe(0)
56
})
57
0 commit comments