mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-06 08:14:04 -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.
15 lines
317 B
TypeScript
15 lines
317 B
TypeScript
import path from 'node:path'
|
|
|
|
import { prepareEmpty } from '@pnpm/prepare'
|
|
|
|
import { getFilePath } from '../src/filePath.js'
|
|
|
|
test('getFilePath()', () => {
|
|
prepareEmpty()
|
|
expect(
|
|
getFilePath(process.cwd())
|
|
).toStrictEqual(
|
|
path.resolve(path.resolve('node_modules/.pnpm-workspace-state-v1.json'))
|
|
)
|
|
})
|