pnpm/__utils__/assert-project
Zoltan Kochan 9120b19cf2
chore(release): 7.27.0
2023-02-08 14:27:15 +02:00
..
src refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
test refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
CHANGELOG.md chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
README.md refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
jest.config.js refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
package.json chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
tsconfig.json fix: remove `suppressImplicitAnyIndexErrors` from typescript settings (#5991) 2023-01-28 18:19:26 +02:00
tsconfig.lint.json refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00

README.md

@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)

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

License

MIT