Skip to content

Commit

Permalink
test: debug failing windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Jan 25, 2024
1 parent b4da5fd commit 409db00
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/integration/install.integration.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Errors} from '@oclif/core'
import {Errors, ux} from '@oclif/core'
import {expect} from 'chai'
import chalk from 'chalk'
import {rm} from 'node:fs/promises'
Expand Down Expand Up @@ -39,7 +39,7 @@ describe('install/uninstall integration tests', () => {

beforeEach(() => {
sandbox = createSandbox()
// stdoutStub = sandbox.stub(ux.write, 'stdout')
stdoutStub = sandbox.stub(ux.write, 'stdout')
process.env.MYCLI_CACHE_DIR = cacheDir
process.env.MYCLI_CONFIG_DIR = configDir
process.env.MYCLI_DATA_DIR = dataDir
Expand All @@ -54,14 +54,13 @@ describe('install/uninstall integration tests', () => {
})

describe('basic', () => {
it.skip('should return "No Plugins" if no plugins are installed', async () => {
it('should return "No Plugins" if no plugins are installed', async () => {
await PluginsIndex.run([], cwd)
expect(stdoutStub.calledWith('No plugins installed.\n')).to.be.true
})

it('should install plugin', async () => {
process.env.DEBUG = '@oclif/plugin-plugins*'
await PluginsInstall.run(['@oclif/plugin-test-esm-1', '--npm-log-level', 'verbose'], cwd)
await PluginsInstall.run(['@oclif/plugin-test-esm-1'], cwd)

const result = await PluginsIndex.run([], cwd)
expect(stdoutStub.calledWith(match('test-esm-1'))).to.be.true
Expand Down

0 comments on commit 409db00

Please sign in to comment.