Files
pnpm/__utils__/assert-store
Zoltan Kochan 1c8c4e49f5 style: add eslint-plugin-simple-import-sort (#10947)
Add eslint-plugin-simple-import-sort to enforce consistent import ordering:
- Node.js builtins first
- External packages second
- Relative imports last
- Named imports sorted alphabetically within each statement
2026-03-13 02:02:38 +01:00
..
2025-10-21 15:30:20 +02: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