mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-28 12:01:37 -04:00
29 lines
415 B
Markdown
29 lines
415 B
Markdown
# @pnpm/assert-project
|
|
|
|
> Utils for testing projects that use pnpm
|
|
|
|
## Installation
|
|
|
|
```
|
|
pnpm install -D @pnpm/assert-project
|
|
```
|
|
|
|
## Usage
|
|
|
|
```ts
|
|
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
|