Files
pnpm/privatePackages/assert-store
Zoltan Kochan da091c7114 feat!: remove store state
PR #2542
ref #594
2020-05-10 12:02:46 +03:00
..
2020-04-26 15:40:03 +03:00
2020-05-06 02:28:35 +03:00
2020-05-10 12:02:46 +03:00
2019-05-07 02:10:06 +03:00
2020-05-05 01:58:38 +03:00

@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