Files
pnpm/privatePackages/assert-project
Zoltan Kochan 35a702c6e0 feat: configurable virtual store directory
New config setting: virtual-store-dir

Breaking changes in: @pnpm/lockfile-file, @pnpm/constants

close  #2078
PR #2091
2019-10-19 03:18:41 +03:00
..
2019-05-07 02:10:06 +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('...', t => {
  // ...
  const project = assertProject(t, pathToProject)

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

License

MIT © Zoltan Kochan