mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-27 03:21:55 -04:00
* build: enable `@typescript-eslint/no-import-type-side-effects` * build: disable `@typescript-eslint/consistent-type-imports` * chore: apply fixes for `no-import-type-side-effects` pnpm exec eslint "**/src/**/*.ts" "**/test/**/*.ts" --fix
@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)
project.has('foo')
// Test fails if project has no foo in node_modules
})
License
MIT