Skip to content

Commit

Permalink
test(cli): remove incorrectly concurrent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juice49 committed Dec 17, 2023
1 parent 807bb2e commit ef0527c
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions packages/@sanity/cli/test/telemetry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ https://www.sanity.io/telemetry
`)
})

testConcurrent('sanity telemetry status: denied using DO_NOT_TRACK', async () => {
test('sanity telemetry status: denied using DO_NOT_TRACK', async () => {
const result = await runSanityCmdCommand('v3', ['telemetry', 'status'], {
env: {
DO_NOT_TRACK: '1',
Expand Down Expand Up @@ -118,16 +118,14 @@ https://www.sanity.io/telemetry
`)
})

testConcurrent(
'sanity telemetry disable: success (already denied using DO_NOT_TRACK)',
async () => {
const result = await runSanityCmdCommand('v3', ['telemetry', 'disable'], {
env: {
DO_NOT_TRACK: '1',
},
})
test('sanity telemetry disable: success (already denied using DO_NOT_TRACK)', async () => {
const result = await runSanityCmdCommand('v3', ['telemetry', 'disable'], {
env: {
DO_NOT_TRACK: '1',
},
})

expect(result.stdout).toMatchInlineSnapshot(`
expect(result.stdout).toMatchInlineSnapshot(`
"Status: Disabled
You've already opted out of telemetry data collection.
Expand All @@ -139,6 +137,5 @@ Learn more here:
https://www.sanity.io/telemetry
"
`)
},
)
})
})

0 comments on commit ef0527c

Please sign in to comment.