Files
pnpm/workspace/state/test/filePath.test.ts
2025-07-08 14:54:07 +02:00

13 lines
307 B
TypeScript

import path from 'path'
import { prepareEmpty } from '@pnpm/prepare'
import { getFilePath } from '../src/filePath'
test('getFilePath()', () => {
prepareEmpty()
expect(
getFilePath(process.cwd())
).toStrictEqual(
path.resolve(path.resolve('node_modules/.pnpm-workspace-state-v1.json'))
)
})