Skip to content

Commit

Permalink
test(cli): disable outdated test for now
Browse files Browse the repository at this point in the history
  • Loading branch information
skogsmaskin committed Dec 7, 2022
1 parent 39f8a65 commit ac00acd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/@sanity/cli/test/preview.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ describeCliTest('CLI: `sanity preview`', () => {
expect(previewHtml).toContain('<h1>This is static.</h1>')
})

testConcurrent('start (hint for new `dev` command)', async () => {
const result = await runSanityCmdCommand('v3', ['start'])
const error = result.stderr.trim()
expect(error).toContain('`sanity start` aliases `sanity preview`')
expect(error).toContain('to start the development server')
})
// Disable this for now as this has become a prompt now.
// testConcurrent('start (hint for new `dev` command)', async () => {
// const result = await runSanityCmdCommand('v3', ['start'])
// const error = result.stderr.trim()
// expect(error).toContain('`sanity start` aliases `sanity preview`')
// expect(error).toContain('to start the development server')
// })
})
})

0 comments on commit ac00acd

Please sign in to comment.