Skip to content

Commit daa8637

Browse files
committed
testing
1 parent 1c051e5 commit daa8637

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/integration/install.integration.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {runCommand} from '@oclif/test'
22
import {dim} from 'ansis'
3+
import * as fs from 'node:fs';
34
import {expect} from 'chai'
45
import {rm} from 'node:fs/promises'
56
import {dirname, join, resolve} from 'node:path'
@@ -208,6 +209,7 @@ describe('install/uninstall integration tests', () => {
208209
// Install a third plugin by a local tarball. This one is alphabetically after the second one.
209210
await runCommand(`plugins install "file://${pluginLocalTarball}`)
210211
const {result: thirdResult, stdout: thirdStdout} = await runCommand<Array<{name: string}>>('plugins')
212+
console.log(fs.readFileSync(join('~', '.local', 'share', 'sf', 'package.json')))
211213
expect(thirdStdout).to.contain(pluginShortName)
212214
expect(thirdResult?.some((r) => r.name === otherPlugin)).to.be.true
213215
expect(thirdResult?.some((r) => r.name === yetAnotherPlugin)).to.be.true
@@ -261,7 +263,7 @@ describe('install/uninstall integration tests', () => {
261263
await runCommand('plugins install @oclif/plugin-legacy')
262264
await runCommand('plugins install @heroku-cli/plugin-ps-exec --silent')
263265
const {result, stdout} = await runCommand<Array<{name: string}>>('plugins')
264-
console.log(`result is ${JSON.stringify(result, null, 2)}`)
266+
console.log(fs.readFileSync(join('~', '.local', 'share', 'sf', 'package.json')))
265267
console.log(`stdout is ${stdout}`)
266268
expect(stdout).to.contain('@heroku-cli/plugin-ps-exec')
267269
expect(result?.some((r) => r.name === '@heroku-cli/plugin-ps-exec')).to.be.true

0 commit comments

Comments
 (0)