@@ -9,8 +9,7 @@ const minimal = path.join(Helper.root, 'test', 'fixtures', 'minimal')
9
9
class Rig {
10
10
setup = async ( { comment, timeout } ) => {
11
11
timeout ( 180000 )
12
- this . platformDir = path . join ( Helper . root , 'pear' )
13
- const helper = new Helper ( { platformDir : this . platformDir } )
12
+ const helper = new Helper ( )
14
13
15
14
this . helper = helper
16
15
comment ( 'connecting local sidecar' )
@@ -22,7 +21,7 @@ class Rig {
22
21
23
22
const testId = Math . floor ( Math . random ( ) * 100000 )
24
23
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 } )
26
25
await stager1 . inspector . evaluate ( `
27
26
__PEAR_TEST__.command(${ JSON . stringify ( argvStage ) } )
28
27
` , { returnByValue : false } )
@@ -38,7 +37,7 @@ class Rig {
38
37
await stager1 . until . exit
39
38
40
39
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 } )
42
41
await releaser1 . inspector . evaluate ( `
43
42
__PEAR_TEST__.command(${ JSON . stringify ( argvRelease ) } )
44
43
` , { returnByValue : false } )
@@ -54,7 +53,7 @@ class Rig {
54
53
55
54
fs . writeFileSync ( path . join ( minimal , 'testfile.txt' ) , 'this is a test file' )
56
55
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 } )
58
57
await stager2 . inspector . evaluate ( `
59
58
__PEAR_TEST__.command(${ JSON . stringify ( argvStage ) } )
60
59
` , { returnByValue : false } )
@@ -95,7 +94,7 @@ test('pear stage --json <channel> <absolute-path>', async function ({ plan, alik
95
94
96
95
const argv = [ 'stage' , '--json' , 'test-' + testId , minimal ]
97
96
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 } )
99
98
100
99
await running . inspector . evaluate ( `
101
100
__PEAR_TEST__.command(${ JSON . stringify ( argv ) } )
@@ -291,7 +290,7 @@ test('pear dump pear://<key> <absolute-path>', async function ({ plan, is, teard
291
290
const targetDir = path . join ( harness , `pear-dump-${ testId } ` )
292
291
teardown ( async ( ) => fs . promises . rm ( targetDir , { recursive : true } ) )
293
292
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 } )
295
294
const argv = [ 'dump' , link , targetDir ]
296
295
await running . inspector . evaluate ( `
297
296
__PEAR_TEST__.command(${ JSON . stringify ( argv ) } )
@@ -324,7 +323,7 @@ test('pear dump pear://<key> <relative-path>', async function ({ plan, is, teard
324
323
const targetDirRelative = path . relative ( harness , targetDir )
325
324
teardown ( async ( ) => fs . promises . rm ( targetDir , { recursive : true } ) )
326
325
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 } )
328
327
const argv = [ 'dump' , link , targetDirRelative ]
329
328
await running . inspector . evaluate ( `
330
329
__PEAR_TEST__.command(${ JSON . stringify ( argv ) } )
@@ -357,7 +356,7 @@ test('pear dump --checkout <n> pear://<key> <relative-path>', async function ({
357
356
const targetDirRelative = path . relative ( harness , targetDir )
358
357
teardown ( async ( ) => fs . promises . rm ( targetDir , { recursive : true } ) )
359
358
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 } )
361
360
const argv = [ 'dump' , link , '--checkout' , `${ versionOld } ` , targetDirRelative ]
362
361
await running . inspector . evaluate ( `
363
362
__PEAR_TEST__.command(${ JSON . stringify ( argv ) } )
@@ -390,7 +389,7 @@ test('pear dump --checkout staged pear://<key> <relative-path>', async function
390
389
const targetDirRelative = path . relative ( harness , targetDir )
391
390
teardown ( async ( ) => fs . promises . rm ( targetDir , { recursive : true } ) )
392
391
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 } )
394
393
const argv = [ 'dump' , link , '--checkout' , 'staged' , targetDirRelative ]
395
394
await running . inspector . evaluate ( `
396
395
__PEAR_TEST__.command(${ JSON . stringify ( argv ) } )
@@ -424,7 +423,7 @@ test('pear dump --checkout staged pear://<key> <relative-path>', async function
424
423
// const targetDirRelative = path.relative(harness, targetDir)
425
424
// teardown(async () => fs.promises.rm(targetDir, { recursive: true }))
426
425
//
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 })
428
427
// const argv = ['dump', link, '--checkout', 'release', targetDirRelative]
429
428
// await running.inspector.evaluate(`
430
429
// __PEAR_TEST__.command(${JSON.stringify(argv)})
@@ -457,7 +456,7 @@ test('pear dump --json pear://<key> <relative-path>', async function ({ plan, is
457
456
const targetDirRelative = path . relative ( harness , targetDir )
458
457
teardown ( async ( ) => fs . promises . rm ( targetDir , { recursive : true } ) )
459
458
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 } )
461
460
const argv = [ 'dump' , '--json' , link , targetDirRelative ]
462
461
await running . inspector . evaluate ( `
463
462
__PEAR_TEST__.command(${ JSON . stringify ( argv ) } )
0 commit comments