Files
pnpm/privatePackages/assert-store
2022-05-07 12:52:00 +03:00
..
2021-02-15 05:06:10 +02:00
2022-05-07 12:52:00 +03:00
2020-12-10 15:50:09 +02:00
2022-05-07 12:52:00 +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('...', 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