Skip to content

Commit

Permalink
Remove exit code checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jkcdarunday committed Sep 12, 2024
1 parent d2cbc73 commit f25be7e
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions test/05-commands.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ test('pear stage --json <channel> <dir>', async function ({ plan, alike, is }) {
await running.inspector.evaluate('__PEAR_TEST__.ipc.close()', { returnByValue: false })
await running.inspector.close()
alike(tags, ['staging', 'byte-diff', 'summary', 'skipping', 'complete', 'addendum', 'final'])
const { code } = await running.until.exit
is(code, 0)
await running.until.exit
})
test.todo('pear stage <channel> <absolute-path>')
test.todo('pear stage <channel> <relative-path>')
Expand Down Expand Up @@ -231,7 +230,7 @@ test.todo('pear dump --checkout release pear://<key> <relative-path>')
test.todo('pear dump --json pear://<key> <relative-path>')

test('pear shift <source> <destination>', async function ({ plan, is, teardown, timeout }) {
plan(3)
plan(2)
timeout(180000)

const relativePath = path.relative(harness, minimal)
Expand Down Expand Up @@ -303,12 +302,11 @@ test('pear shift <source> <destination>', async function ({ plan, is, teardown,

is(shiftSuccess, true, 'should successfully shift app storage')
is(fs.existsSync(path.join(appStorage2, 'test.txt')), true, 'should move app storage file to destination')
const { code } = await running.until.exit
is(code, 0, 'should have exit code 0')
await running.until.exit
})

test('pear shift --json <source> <destination>', async function ({ plan, is, alike, teardown, timeout }) {
plan(3)
plan(2)
timeout(180000)

const relativePath = path.relative(harness, minimal)
Expand Down Expand Up @@ -382,12 +380,11 @@ test('pear shift --json <source> <destination>', async function ({ plan, is, ali

alike(tags, ['moving', 'complete', 'final'], 'should output correct tags')
is(fs.existsSync(path.join(appStorage2, 'test.txt')), true, 'should move app storage file to destination')
const { code } = await running.until.exit
is(code, 0, 'should have exit code 0')
await running.until.exit
})

test('pear shift --force <source> <destination>', async function ({ plan, is, teardown, timeout }) {
plan(4)
plan(3)
timeout(180000)

const relativePath = path.relative(harness, minimal)
Expand Down Expand Up @@ -462,12 +459,11 @@ test('pear shift --force <source> <destination>', async function ({ plan, is, te
is(shiftSuccess, true, 'should successfully shift app storage')
is(fs.existsSync(path.join(appStorage2, 'test.txt')), true, 'should move app storage file to destination')
is(fs.existsSync(path.join(appStorage2, 'testold.txt')), false, 'should delete existing app storage file at destination')
const { code } = await running.until.exit
is(code, 0, 'should have exit code 0')
await running.until.exit
})

test('pear shift --force --json <source> <destination>', async function ({ plan, is, teardown, timeout, alike }) {
plan(4)
plan(3)
timeout(180000)

const relativePath = path.relative(harness, minimal)
Expand Down Expand Up @@ -544,8 +540,7 @@ test('pear shift --force --json <source> <destination>', async function ({ plan,
alike(tags, ['moving', 'complete', 'final'], 'should output correct tags')
is(fs.existsSync(path.join(appStorage2, 'test.txt')), true, 'should move app storage file to destination')
is(fs.existsSync(path.join(appStorage2, 'testold.txt')), false, 'should delete existing app storage file at destination')
const { code } = await running.until.exit
is(code, 0, 'should have exit code 0')
await running.until.exit
})

test.todo('pear gc releases')
Expand Down

0 comments on commit f25be7e

Please sign in to comment.