Skip to content

Commit f5acca6

Browse files
committed
Remove platformDir since we now have tests running with staged localdev
1 parent b0d0d70 commit f5acca6

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

test/05-commands.test.js

+11-12
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ const minimal = path.join(Helper.root, 'test', 'fixtures', 'minimal')
99
class Rig {
1010
setup = async ({ comment, timeout }) => {
1111
timeout(180000)
12-
this.platformDir = path.join(Helper.root, 'pear')
13-
const helper = new Helper({ platformDir: this.platformDir })
12+
const helper = new Helper()
1413

1514
this.helper = helper
1615
comment('connecting local sidecar')
@@ -22,7 +21,7 @@ class Rig {
2221

2322
const testId = Math.floor(Math.random() * 100000)
2423
const argvStage = ['stage', '--json', 'test-' + testId, minimal]
25-
const stager1 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
24+
const stager1 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
2625
await stager1.inspector.evaluate(`
2726
__PEAR_TEST__.command(${JSON.stringify(argvStage)})
2827
`, { returnByValue: false })
@@ -38,7 +37,7 @@ class Rig {
3837
await stager1.until.exit
3938

4039
const argvRelease = ['release', '--json', 'test-' + testId, minimal]
41-
const releaser1 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
40+
const releaser1 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
4241
await releaser1.inspector.evaluate(`
4342
__PEAR_TEST__.command(${JSON.stringify(argvRelease)})
4443
`, { returnByValue: false })
@@ -54,7 +53,7 @@ class Rig {
5453

5554
fs.writeFileSync(path.join(minimal, 'testfile.txt'), 'this is a test file')
5655

57-
const stager2 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
56+
const stager2 = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
5857
await stager2.inspector.evaluate(`
5958
__PEAR_TEST__.command(${JSON.stringify(argvStage)})
6059
`, { returnByValue: false })
@@ -95,7 +94,7 @@ test('pear stage --json <channel> <absolute-path>', async function ({ plan, alik
9594

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

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

10099
await running.inspector.evaluate(`
101100
__PEAR_TEST__.command(${JSON.stringify(argv)})
@@ -291,7 +290,7 @@ test('pear dump pear://<key> <absolute-path>', async function ({ plan, is, teard
291290
const targetDir = path.join(harness, `pear-dump-${testId}`)
292291
teardown(async () => fs.promises.rm(targetDir, { recursive: true }))
293292

294-
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
293+
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
295294
const argv = ['dump', link, targetDir]
296295
await running.inspector.evaluate(`
297296
__PEAR_TEST__.command(${JSON.stringify(argv)})
@@ -324,7 +323,7 @@ test('pear dump pear://<key> <relative-path>', async function ({ plan, is, teard
324323
const targetDirRelative = path.relative(harness, targetDir)
325324
teardown(async () => fs.promises.rm(targetDir, { recursive: true }))
326325

327-
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
326+
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
328327
const argv = ['dump', link, targetDirRelative]
329328
await running.inspector.evaluate(`
330329
__PEAR_TEST__.command(${JSON.stringify(argv)})
@@ -357,7 +356,7 @@ test('pear dump --checkout <n> pear://<key> <relative-path>', async function ({
357356
const targetDirRelative = path.relative(harness, targetDir)
358357
teardown(async () => fs.promises.rm(targetDir, { recursive: true }))
359358

360-
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
359+
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
361360
const argv = ['dump', link, '--checkout', `${versionOld}`, targetDirRelative]
362361
await running.inspector.evaluate(`
363362
__PEAR_TEST__.command(${JSON.stringify(argv)})
@@ -390,7 +389,7 @@ test('pear dump --checkout staged pear://<key> <relative-path>', async function
390389
const targetDirRelative = path.relative(harness, targetDir)
391390
teardown(async () => fs.promises.rm(targetDir, { recursive: true }))
392391

393-
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
392+
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
394393
const argv = ['dump', link, '--checkout', 'staged', targetDirRelative]
395394
await running.inspector.evaluate(`
396395
__PEAR_TEST__.command(${JSON.stringify(argv)})
@@ -424,7 +423,7 @@ test('pear dump --checkout staged pear://<key> <relative-path>', async function
424423
// const targetDirRelative = path.relative(harness, targetDir)
425424
// teardown(async () => fs.promises.rm(targetDir, { recursive: true }))
426425
//
427-
// const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
426+
// const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
428427
// const argv = ['dump', link, '--checkout', 'release', targetDirRelative]
429428
// await running.inspector.evaluate(`
430429
// __PEAR_TEST__.command(${JSON.stringify(argv)})
@@ -457,7 +456,7 @@ test('pear dump --json pear://<key> <relative-path>', async function ({ plan, is
457456
const targetDirRelative = path.relative(harness, targetDir)
458457
teardown(async () => fs.promises.rm(targetDir, { recursive: true }))
459458

460-
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true, platformDir: rig.platformDir })
459+
const running = await Helper.open(harness, { tags: ['exit'] }, { lineout: true })
461460
const argv = ['dump', '--json', link, targetDirRelative]
462461
await running.inspector.evaluate(`
463462
__PEAR_TEST__.command(${JSON.stringify(argv)})

0 commit comments

Comments
 (0)