Skip to content

Commit

Permalink
fix: foo
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed Jul 5, 2020
1 parent 64ce0b0 commit a83cf1c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/cli.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@ export default {
'package-a/package.json': JSON.stringify({ name: 'package-a' }),
'package-b/package.json': JSON.stringify({ name: '@vendor/package-b' }),
})
await Promise.all([
execa.command('yarn link', { cwd: 'package-a' }),
execa.command('yarn link', { cwd: 'package-b' }),
])
await execa.command('yarn link', { cwd: 'package-a', stdio: 'inherit' })
await execa.command('yarn link', { cwd: 'package-b', stdio: 'inherit' })
try {
const output = await execa(require.resolve('./cli'), { all: true })
expect(output.all).toEqual(' - @vendor/package-b\n - package-a')
} finally {
// yarn unlink currently does not work with GitHub Actions
await Promise.all([
remove(P.join(yarnLinksPath, 'package-a')),
remove(P.join(yarnLinksPath, 'package-b')),
])
await remove(P.join(yarnLinksPath, 'package-a'))
await remove(P.join(yarnLinksPath, 'package-b'))
}
}),
}

0 comments on commit a83cf1c

Please sign in to comment.