mirror of
https://github.com/pnpm/pnpm.git
synced 2026-01-01 03:28:14 -05:00
23 lines
641 B
TypeScript
23 lines
641 B
TypeScript
import fs from 'fs'
|
|
import { prepareEmpty } from '@pnpm/prepare'
|
|
import { addDependenciesToPackage } from '@pnpm/core'
|
|
import { testDefaults } from '../utils'
|
|
|
|
test('a package with a huge amount of circular dependencies and many peer dependencies should successfully be resolved', async () => {
|
|
prepareEmpty()
|
|
|
|
await addDependenciesToPackage({},
|
|
['@teambit/bit@0.0.745'],
|
|
testDefaults({
|
|
fastUnpack: true,
|
|
lockfileOnly: true,
|
|
registries: {
|
|
'@teambit': 'https://node-registry.bit.cloud/',
|
|
},
|
|
strictPeerDependencies: false,
|
|
})
|
|
)
|
|
|
|
expect(fs.existsSync('pnpm-lock.yaml')).toBeTruthy()
|
|
})
|