Files
pnpm/lockfile/fs/test/gitBranchLockfile.test.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

12 lines
395 B
TypeScript

import path from 'node:path'
import { getGitBranchLockfileNames } from '../lib/gitBranchLockfile.js'
process.chdir(import.meta.dirname)
test('getGitBranchLockfileNames()', async () => {
const lockfileDir: string = path.join('fixtures', '6')
const gitBranchLockfileNames = await getGitBranchLockfileNames(lockfileDir)
expect(gitBranchLockfileNames).toEqual(['pnpm-lock.branch.yaml'])
})