Files
pnpm/privatePackages/assert-project
2022-05-07 12:52:00 +03:00
..
2021-10-16 23:33:34 +03:00
2021-02-15 05:06:10 +02:00
2022-05-07 12:52:00 +03:00
2020-12-10 15:50:09 +02:00
2022-05-07 12:52:00 +03: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)

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

License

MIT