Skip to content

Commit

Permalink
Remove platformDir since we now have tests running with staged localdev
Browse files Browse the repository at this point in the history
  • Loading branch information
jkcdarunday committed Sep 12, 2024
1 parent 49fbd09 commit 5524402
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions test/05-commands.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const minimal = path.join(Helper.root, 'test', 'fixtures', 'minimal')
class Rig {
setup = async ({ comment, timeout }) => {
timeout(180000)
this.platformDir = path.join(Helper.root, 'pear')
const helper = new Helper({ platformDir: this.platformDir })
const helper = new Helper()
this.helper = helper
comment('connecting local sidecar')
await helper.ready()
Expand All @@ -36,7 +35,7 @@ test('pear stage --json <channel> <dir>', async function ({ plan, alike, is }) {

const argv = ['stage', '--json', 'test-' + testId, minimal]

const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })

await running.inspector.evaluate(`
__PEAR_TEST__.command(${JSON.stringify(argv)})
Expand Down Expand Up @@ -239,7 +238,7 @@ test('pear shift <source> <destination>', async function ({ plan, is, teardown,

const testId1 = Math.floor(Math.random() * 100000)
const argvInit1 = ['stage', '--json', `test-${testId1}`, relativePath]
const stager1 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
const stager1 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
await stager1.inspector.evaluate(`
__PEAR_TEST__.command(${JSON.stringify(argvInit1)})
`, { returnByValue: false })
Expand All @@ -257,7 +256,7 @@ test('pear shift <source> <destination>', async function ({ plan, is, teardown,

const testId2 = Math.floor(Math.random() * 100000)
const argvInit2 = ['stage', '--json', `test-${testId2}`, relativePath]
const stager2 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
const stager2 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
await stager2.inspector.evaluate(`
__PEAR_TEST__.command(${JSON.stringify(argvInit2)})
`, { returnByValue: false })
Expand Down Expand Up @@ -287,7 +286,7 @@ test('pear shift <source> <destination>', async function ({ plan, is, teardown,
})

const argv = ['shift', staged1.link, staged2.link]
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
await running.inspector.evaluate(`
__PEAR_TEST__.command(${JSON.stringify(argv)})
`, { returnByValue: false })
Expand Down Expand Up @@ -316,7 +315,7 @@ test('pear shift --json <source> <destination>', async function ({ plan, is, ali

const testId1 = Math.floor(Math.random() * 100000)
const argvInit1 = ['stage', '--json', `test-${testId1}`, relativePath]
const stager1 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
const stager1 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
await stager1.inspector.evaluate(`
__PEAR_TEST__.command(${JSON.stringify(argvInit1)})
`, { returnByValue: false })
Expand All @@ -334,7 +333,7 @@ test('pear shift --json <source> <destination>', async function ({ plan, is, ali

const testId2 = Math.floor(Math.random() * 100000)
const argvInit2 = ['stage', '--json', `test-${testId2}`, relativePath]
const stager2 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
const stager2 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
await stager2.inspector.evaluate(`
__PEAR_TEST__.command(${JSON.stringify(argvInit2)})
`, { returnByValue: false })
Expand Down Expand Up @@ -364,7 +363,7 @@ test('pear shift --json <source> <destination>', async function ({ plan, is, ali
})

const argv = ['shift', '--json', staged1.link, staged2.link]
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
await running.inspector.evaluate(`
__PEAR_TEST__.command(${JSON.stringify(argv)})
`, { returnByValue: false })
Expand Down Expand Up @@ -395,7 +394,7 @@ test('pear shift --force <source> <destination>', async function ({ plan, is, te

const testId1 = Math.floor(Math.random() * 100000)
const argvInit1 = ['stage', '--json', `test-${testId1}`, relativePath]
const stager1 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
const stager1 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
await stager1.inspector.evaluate(`
__PEAR_TEST__.command(${JSON.stringify(argvInit1)})
`, { returnByValue: false })
Expand All @@ -413,7 +412,7 @@ test('pear shift --force <source> <destination>', async function ({ plan, is, te

const testId2 = Math.floor(Math.random() * 100000)
const argvInit2 = ['stage', '--json', `test-${testId2}`, relativePath]
const stager2 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
const stager2 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
await stager2.inspector.evaluate(`
__PEAR_TEST__.command(${JSON.stringify(argvInit2)})
`, { returnByValue: false })
Expand Down Expand Up @@ -445,7 +444,7 @@ test('pear shift --force <source> <destination>', async function ({ plan, is, te
})

const argv = ['shift', '--force', staged1.link, staged2.link]
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
await running.inspector.evaluate(`
__PEAR_TEST__.command(${JSON.stringify(argv)})
`, { returnByValue: false })
Expand Down Expand Up @@ -475,7 +474,7 @@ test('pear shift --force --json <source> <destination>', async function ({ plan,

const testId1 = Math.floor(Math.random() * 100000)
const argvInit1 = ['stage', '--json', `test-${testId1}`, relativePath]
const stager1 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
const stager1 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
await stager1.inspector.evaluate(`
__PEAR_TEST__.command(${JSON.stringify(argvInit1)})
`, { returnByValue: false })
Expand All @@ -493,7 +492,7 @@ test('pear shift --force --json <source> <destination>', async function ({ plan,

const testId2 = Math.floor(Math.random() * 100000)
const argvInit2 = ['stage', '--json', `test-${testId2}`, relativePath]
const stager2 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
const stager2 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
await stager2.inspector.evaluate(`
__PEAR_TEST__.command(${JSON.stringify(argvInit2)})
`, { returnByValue: false })
Expand Down Expand Up @@ -525,7 +524,7 @@ test('pear shift --force --json <source> <destination>', async function ({ plan,
})

const argv = ['shift', '--force', '--json', staged1.link, staged2.link]
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
await running.inspector.evaluate(`
__PEAR_TEST__.command(${JSON.stringify(argv)})
`, { returnByValue: false })
Expand Down

0 comments on commit 5524402

Please sign in to comment.