Files
pnpm/pkg-manager/core/test/install/deepRecursive.ts
Zoltan Kochan 5d5818e44f style: enforce node: protocol for builtin imports (#10951)
Add n/prefer-node-protocol rule and autofix all bare builtin imports
to use the node: prefix. Simplify the simple-import-sort builtins
pattern to just ^node: since all imports now use the prefix.
2026-03-13 07:59:51 +01:00

27 lines
729 B
TypeScript

import fs from 'node:fs'
import { addDependenciesToPackage } from '@pnpm/core'
import { prepareEmpty } from '@pnpm/prepare'
import { testDefaults } from '../utils/index.js'
test('a package with a huge amount of circular dependencies and many peer dependencies should successfully be resolved', async () => {
prepareEmpty()
const registries = {
default: 'https://registry.npmjs.org/',
'@teambit': 'https://node-registry.bit.cloud/',
}
await addDependenciesToPackage({},
['@teambit/bit@0.0.745'],
testDefaults({
fastUnpack: true,
lockfileOnly: true,
registries,
strictPeerDependencies: false,
}, { registries })
)
expect(fs.existsSync('pnpm-lock.yaml')).toBeTruthy()
})