Skip to content

Commit 6933183

Browse files
committed
AAAAH
1 parent 759371e commit 6933183

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

test/integration/install.integration.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ describe('install/uninstall integration tests', () => {
6060
process.env.MYCLI_CACHE_DIR = cacheDir
6161
process.env.MYCLI_CONFIG_DIR = configDir
6262
process.env.MYCLI_DATA_DIR = dataDir
63-
await runCommand('plugins reset')
6463
})
6564

6665
afterEach(() => {
@@ -194,20 +193,23 @@ describe('install/uninstall integration tests', () => {
194193
*/
195194
it('handles local tarballs installed after simple plugin name', async () => {
196195
// Install first plugin by its registered name
197-
await runCommand(`plugins install ${otherPlugin}`)
196+
const {stdout: firstAdd} = await runCommand(`plugins install ${otherPlugin}`)
197+
console.log(`first add stdout: ${firstAdd}`)
198198
const {result: firstResult, stdout: firstStdout} = await runCommand<Array<{name: string}>>('plugins')
199199
expect(firstStdout).to.contain(otherPluginShortName)
200200
expect(firstResult?.some((r) => r.name === otherPlugin)).to.be.true
201201

202202
// Install a second plugin by a local tarball. This one is alphabetically after the first one.
203-
await runCommand(`plugins install "file://${yetAnotherLocalPluginTarball}"`)
203+
const {stdout: secondAdd} = await runCommand(`plugins install "file://${yetAnotherLocalPluginTarball}"`)
204+
console.log(`second add stdout: ${secondAdd}`)
204205
const {result: secondResult, stdout: secondStdout} = await runCommand<Array<{name: string}>>('plugins')
205206
expect(secondStdout).to.contain(yetAnotherPluginShortName)
206207
expect(secondResult?.some((r) => r.name === otherPlugin)).to.be.true
207208
expect(secondResult?.some((r) => r.name === yetAnotherPlugin)).to.be.true
208209

209210
// Install a third plugin by a local tarball. This one is alphabetically after the second one.
210-
await runCommand(`plugins install "file://${pluginLocalTarball}`)
211+
const {result: thirdAdd} = await runCommand(`plugins install "file://${pluginLocalTarball}`)
212+
console.log(`third add stdout: ${thirdAdd}`)
211213
const {result: thirdResult, stdout: thirdStdout} = await runCommand<Array<{name: string}>>('plugins')
212214
expect(thirdStdout).to.contain(pluginShortName)
213215
expect(thirdResult?.some((r) => r.name === otherPlugin)).to.be.true

0 commit comments

Comments
 (0)