pnpm/__utils__/assert-store
Zoltan Kochan 9120b19cf2
chore(release): 7.27.0
2023-02-08 14:27:15 +02:00
..
src refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
test refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
CHANGELOG.md chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
README.md refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
jest.config.js refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
package.json chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
tsconfig.json fix: remove `suppressImplicitAnyIndexErrors` from typescript settings (#5991) 2023-01-28 18:19:26 +02:00
tsconfig.lint.json refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00

README.md

@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