Khải authored and GitHub committed 2024-08-31 23:16:01 +02:00
1 parent 3247d44243
commit 2ed45946db
1 file changed
+7 -2
@@ -3,7 +3,7 @@ import { filterPackagesFromDir } from '@pnpm/workspace.filter-packages-from-dir'
import { type Lockfile } from '@pnpm/lockfile.types'
import { add, install, update } from '@pnpm/plugin-commands-installation'
import { prepare, preparePackages } from '@pnpm/prepare'
import { REGISTRY_MOCK_PORT } from '@pnpm/registry-mock'
import { REGISTRY_MOCK_PORT, addDistTag } from '@pnpm/registry-mock'
import { sync as readYamlFile } from 'read-yaml-file'
import chalk from 'chalk'
import * as enquirer from 'enquirer'
@@ -65,6 +65,11 @@ test('interactively update', async () => {
value: '',
}
await Promise.all([
addDistTag({ package: 'is-negative', version: '2.1.0', distTag: 'latest' }),
addDistTag({ package: 'micromatch', version: '4.0.0', distTag: 'latest' }),
])
await add.handler(
{
...DEFAULT_OPTIONS,
@@ -164,7 +169,7 @@ test('interactively update', async () => {
name: 'is-positive',
},
{
message: chalk`micromatch 3.0.0 ❯ {redBright.bold 4.0.8} `,
message: chalk`micromatch 3.0.0 ❯ {redBright.bold 4.0.0} `,
value: 'micromatch',
name: 'micromatch',
},