mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-06 00:06:06 -04:00
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.
12 lines
395 B
TypeScript
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'])
|
|
})
|