Files
pnpm/privatePackages/assert-store/README.md
Tejasvi (Teju) Nareddy 2ce8f851b0 chore(assert-store): create new private package @pnpm/assert-store
Add new module to test pnpm stores
Add a test directory

PR #1536
2018-12-07 22:28:42 +02:00

486 B

@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('...', 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 © Zoltan Kochan