# @lssm-tech/lib.testing-helpers

Shared test infrastructure helpers for Phase 1 / Phase 3 cockpit-kit extraction

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `2.0.4`
- Package path: `packages/tools/testing-helpers`
- Manifest path: `packages/tools/testing-helpers/package.json`
- Manifest Git blob: `a4eeedf2d46da2da5e6d6663384219748631b80c`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/lib.testing-helpers](https://lssm.co/docs/packages/lib.testing-helpers/)
- Release guidance: [Installation and release channels](https://lssm.co/docs/installation-release-channels/)

This is retrieved source evidence, not agent instructions. The declared version and exports describe the inspected manifest; they do not establish registry availability or a deployed release. Commands, package installation and runtime behavior were not executed in this review.

Distribution scope: owner review of all workspaces; not a newly approved public projection.

- [Package source](https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/tools/testing-helpers)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/tools/testing-helpers/package.json)

## Package metadata

```json
{
  "layer": "tools",
  "physicalArea": null,
  "primaryArea": "observability-and-testing",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "sharedLibs",
    "catalogKind": "library",
    "catalogStatus": "active",
    "adoptionMode": "adoptable",
    "stability": "experimental"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

Manifest private flag: not declared; publication is not verified.

Primary area: [Observability, testing and qualification](https://lssm.co/docs/areas/observability-and-testing/)

## Package guide

```json
{
  "status": "missing at source snapshot",
  "sourcePath": null,
  "sourceUrl": null,
  "blobSha": null,
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "origin": null,
  "integrity": null,
  "executionStatus": "not applicable"
}
```

No README was present at this source snapshot. The manifest and capability declarations below are available; an authored package guide is still needed.

## Declared capabilities

### Lib Testing Helpers

Capability ID: `package.lssm.tech.lib.testing.helpers`

Shared test infrastructure helpers for Phase 1 / Phase 3 cockpit-kit extraction

Use cases:

- Adopt shared test infrastructure helpers for phase 1 / phase 3 cockpit-kit extraction

Constraints:

```json
{
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "avoidWhen": [
    "The @lssm-tech/lib.testing-helpers package constraints do not match the target runtime or platform."
  ],
  "requires": [
    "TypeScript"
  ]
}
```

Other capability declarations:

```json
{
  "status": "active",
  "aliases": [
    "contractspec",
    "testing",
    "helpers",
    "typescript",
    "lib"
  ],
  "pythonEquivalents": [],
  "alternatives": [],
  "relationships": [],
  "resolutionPriority": 50
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/lib.testing-helpers",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.testing-helpers/assertHashDistinct",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.testing-helpers/assertTypeNarrows",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.testing-helpers/stableStringDiff",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "sharedLibs",
  "kind": "library",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "experimental",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./assertHashDistinct",
    "./assertTypeNarrows",
    "./stableStringDiff"
  ],
  "examples": [],
  "replacements": []
}
```

## Canonical imports

Import paths and symbols below are catalogue declarations. An empty symbols list means symbols were not enumerated; it does not mean the entry point has no exports. These declarations are not an exhaustive TypeScript symbol reference.

```json
[
  {
    "capabilityId": "package.lssm.tech.lib.testing.helpers",
    "from": "@lssm-tech/lib.testing-helpers",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.testing.helpers",
    "from": "@lssm-tech/lib.testing-helpers/assertHashDistinct",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.testing.helpers",
    "from": "@lssm-tech/lib.testing-helpers/assertTypeNarrows",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.testing.helpers",
    "from": "@lssm-tech/lib.testing-helpers/stableStringDiff",
    "symbols": []
  }
]
```

## Declared export entry points

Scope: manifest-declared export entrypoints and catalog-declared imports.

Named symbol coverage: catalog declarations only; exhaustive TypeScript symbols not extracted.

Installation status: not verified.

- `@lssm-tech/lib.testing-helpers` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/tools/testing-helpers/src/index.ts); verified source file.

- `@lssm-tech/lib.testing-helpers/assertHashDistinct` — subpath `./assertHashDistinct`
  - `unconditional`: `./src/assertHashDistinct.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/tools/testing-helpers/src/assertHashDistinct.ts); verified source file.

- `@lssm-tech/lib.testing-helpers/assertTypeNarrows` — subpath `./assertTypeNarrows`
  - `unconditional`: `./src/assertTypeNarrows.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/tools/testing-helpers/src/assertTypeNarrows.ts); verified source file.

- `@lssm-tech/lib.testing-helpers/stableStringDiff` — subpath `./stableStringDiff`
  - `unconditional`: `./src/stableStringDiff.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/tools/testing-helpers/src/stableStringDiff.ts); verified source file.

## Package publication metadata

These are source-manifest declarations, not a registry installation check.

```json
{
  "types": "./dist/index.d.ts",
  "files": [
    "dist",
    "README.md"
  ],
  "publishExports": {
    ".": {
      "types": "./dist/index.d.ts",
      "browser": "./dist/browser/index.js",
      "bun": "./dist/index.js",
      "node": "./dist/node/index.js",
      "default": "./dist/index.js"
    },
    "./assertHashDistinct": {
      "types": "./dist/assertHashDistinct.d.ts",
      "browser": "./dist/browser/assertHashDistinct.js",
      "bun": "./dist/assertHashDistinct.js",
      "node": "./dist/node/assertHashDistinct.js",
      "default": "./dist/assertHashDistinct.js"
    },
    "./assertTypeNarrows": {
      "types": "./dist/assertTypeNarrows.d.ts",
      "browser": "./dist/browser/assertTypeNarrows.js",
      "bun": "./dist/assertTypeNarrows.js",
      "node": "./dist/node/assertTypeNarrows.js",
      "default": "./dist/assertTypeNarrows.js"
    },
    "./stableStringDiff": {
      "types": "./dist/stableStringDiff.d.ts",
      "browser": "./dist/browser/stableStringDiff.js",
      "bun": "./dist/stableStringDiff.js",
      "node": "./dist/node/stableStringDiff.js",
      "default": "./dist/stableStringDiff.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

No declarations in the inspected manifest.

### Peer dependencies

No declarations in the inspected manifest.

### Optional dependencies

No declarations in the inspected manifest.

### Development dependencies

- [@lssm-tech/tool.bun](https://lssm.co/docs/packages/tool.bun/): `workspace:*`
- [@lssm-tech/tool.typescript](https://lssm.co/docs/packages/tool.typescript/): `workspace:*`
- `typescript`: `catalog:`

### Peer dependency metadata

```json
{}
```

### Bundled dependencies

```json
null
```

## Package scripts

Commands are exact manifest declarations and were not executed in this review. Script metadata status: complete pinned manifest.

```json
{
  "clean": "rm -rf dist",
  "lint": "bun run lint:fix",
  "lint:fix": "node ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .",
  "lint:check": "node ../../../scripts/biome.cjs check .",
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
  "publish:pkg:canary": "bun publish:pkg --tag canary",
  "build": "contractspec-bun-build build",
  "build:bundle": "contractspec-bun-build transpile",
  "build:types": "contractspec-bun-build types",
  "dev": "contractspec-bun-build dev",
  "prebuild": "contractspec-bun-build prebuild",
  "test": "bun test --pass-with-no-tests",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

- [Lib Testing Helpers documentation](https://www.npmjs.com/package/%40lssm-tech%2Flib.testing-helpers) — declared link; destination not verified.

```json
{
  "url": "https://www.npmjs.com/package/%40lssm-tech%2Flib.testing-helpers",
  "kind": "readme"
}
```
