mirror of
https://github.com/pnpm/pnpm.git
synced 2026-02-25 03:27:07 -05:00
* chore(scripts): typecheck-only * feat: change all configuration * feat: include pnpm/ and pnpm/test/ * chore(deps): remove unused dependency * refactor(typescript-only): use find-packages * refactor(typescript-only): refactor paths * fix: typescript-only * fix: update compile-only * fix: compile pnpm * fix: windows * fix: windows * chore: meta-updater * refactor(tsconfig): remove explicit composite * fix: path in windows * feat: don't depend on cwd --------- Co-authored-by: Zoltan Kochan <z@kochan.io>
@pnpm/assert-store
Utils for testing pnpm stores
Installation
pnpm install -D @pnpm/assert-store
Usage
import test = require('tape')
import { assertStore } from '@pnpm/assert-store'
test('...', async t => {
// ...
const store = assertStore(t, pathToStore, encodedRegistryName)
await store.storeHas('is-positive', '3.1.0')
// Test fails if pnpm store does not have this package
})
License
MIT