mirror of
https://github.com/pnpm/pnpm.git
synced 2026-02-01 10:42:28 -05:00
28 lines
831 B
TypeScript
28 lines
831 B
TypeScript
import { prepareEmpty } from '@pnpm/prepare'
|
|
import { addDependenciesToPackage } from '@pnpm/core'
|
|
import isCI from 'is-ci'
|
|
import exists from 'path-exists'
|
|
import { testDefaults } from '../utils'
|
|
|
|
const testSkipOnCI = isCI ? test.skip : test
|
|
|
|
// Looks like GitHub Actions have reduced memory limit for Node.js,
|
|
// so it fails in CI at the moment.
|
|
testSkipOnCI('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'],
|
|
await testDefaults({
|
|
fastUnpack: true,
|
|
lockfileOnly: true,
|
|
registries: {
|
|
'@teambit': 'https://node.bit.dev/',
|
|
},
|
|
strictPeerDependencies: false,
|
|
})
|
|
)
|
|
|
|
expect(await exists('pnpm-lock.yaml')).toBeTruthy()
|
|
})
|