|
1 | 1 | import {runCommand} from '@oclif/test' |
2 | 2 | import {dim} from 'ansis' |
| 3 | +import * as fs from 'node:fs'; |
3 | 4 | import {expect} from 'chai' |
4 | 5 | import {rm} from 'node:fs/promises' |
5 | 6 | import {dirname, join, resolve} from 'node:path' |
@@ -208,6 +209,7 @@ describe('install/uninstall integration tests', () => { |
208 | 209 | // Install a third plugin by a local tarball. This one is alphabetically after the second one. |
209 | 210 | await runCommand(`plugins install "file://${pluginLocalTarball}`) |
210 | 211 | const {result: thirdResult, stdout: thirdStdout} = await runCommand<Array<{name: string}>>('plugins') |
| 212 | + console.log(fs.readFileSync(join('~', '.local', 'share', 'sf', 'package.json'))) |
211 | 213 | expect(thirdStdout).to.contain(pluginShortName) |
212 | 214 | expect(thirdResult?.some((r) => r.name === otherPlugin)).to.be.true |
213 | 215 | expect(thirdResult?.some((r) => r.name === yetAnotherPlugin)).to.be.true |
@@ -261,7 +263,7 @@ describe('install/uninstall integration tests', () => { |
261 | 263 | await runCommand('plugins install @oclif/plugin-legacy') |
262 | 264 | await runCommand('plugins install @heroku-cli/plugin-ps-exec --silent') |
263 | 265 | 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'))) |
265 | 267 | console.log(`stdout is ${stdout}`) |
266 | 268 | expect(stdout).to.contain('@heroku-cli/plugin-ps-exec') |
267 | 269 | expect(result?.some((r) => r.name === '@heroku-cli/plugin-ps-exec')).to.be.true |
|
0 commit comments