Files
pnpm/__utils__/assert-project
Zoltan Kochan e3ec45421b fix(assert-project): check for .exe when .cmd does not exist on Windows
After hardlinking node.exe directly instead of creating a cmd-shim,
the isExecutable utility needs to also accept .exe files on Windows.
2026-02-23 17:26:43 +01:00
..
2025-10-21 15:30:20 +02:00

@pnpm/assert-project

Utils for testing projects that use pnpm

Installation

pnpm install -D @pnpm/assert-project

Usage

import test = require('tape')
import { assertProject } from '@pnpm/assert-project'

test('...', async t => {
  // ...
  const project = assertProject(t, pathToProject)

  project.has('foo')
  // Test fails if project has no foo in node_modules
})

License

MIT