Skip to content
This repository has been archived by the owner on Sep 29, 2018. It is now read-only.

pnpm/assert-project

Repository files navigation

This package has been moved to the pnpm multi-package repository.

@pnpm/assert-project

Utils for testing projects that use pnpm

npm version Build Status

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