mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-18 13:51:38 -04:00
test: pin micromatch latest tag (#8484)
Resolves 0f5d841fc6 (commitcomment-146043552)
This commit is contained in:
@@ -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',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user