Skip to content

Commit

Permalink
test: npx --yes
Browse files Browse the repository at this point in the history
  • Loading branch information
KID-joker committed Nov 21, 2024
1 parent a7301f9 commit 4eaedd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test('current tests', async (t) => {
})

await t.test('check if deprecation warning is shown if deprecated package is installed', async (_t) => {
const pnpm = process.version.startsWith('v16') ? 'pnpm@8' : 'pnpm'
const pnpm = process.version.startsWith('v16') ? '--yes pnpm@8' : 'pnpm'
const { stderr } = await exec(`npx ${pnpm} i request && node ./dist/cli.mjs current`, { timeout: 160000 })
assert.ok(/request has been deprecated/.test(stderr), 'Expected "has been deprecated" to be mentioned in deprecation warning.')
// Cleanup: Undo the installation
Expand Down

0 comments on commit 4eaedd4

Please sign in to comment.