# Testing signals — lerna/lerna

> Canonical page: https://codevetter.com/unpack/lerna/testing-signals

# Testing signals — lerna/lerna

Scanned commit ce3e38f2889b26573f1b38cfb487546903292158 (2026-10-02). Generated by codevetter codevetter 1.15.0 on 2026-10-02.

Source inspection; upstream code and tests were not executed.

Tests and CI were inspected, not executed; no passing result or coverage percentage is established. Vitest supplies shared Node-environment configuration for unit, integration, and e2e projects. Inspected suites mix mocked command boundaries with actual CLI and local-registry scenarios. The inventory is bounded, and mock coverage does not establish live service correctness.
- Shared Vitest configuration enables globals, a Node environment, single-run mode, spec/test discovery, Jest-compatible snapshot formatting, cleared mocks, and V8 coverage output. — [vitest.shared.ts#L92-118](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/vitest.shared.ts#L92-L118)
- Run unit tests mock npm script execution and assert script validation, filtering, streaming/prefix behavior, no-match success, alternate clients, and bail/non-bail exit propagation. — [libs/commands/run/src/lib/run-command.spec.ts#L19-30](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/run/src/lib/run-command.spec.ts#L19-L30) [libs/commands/run/src/lib/run-command.spec.ts#L68-125](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/run/src/lib/run-command.spec.ts#L68-L125) [libs/commands/run/src/lib/run-command.spec.ts#L128-177](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/run/src/lib/run-command.spec.ts#L128-L177)
- Version unit tests mock push and upstream checks while checking working-tree validation, version prompts, updated manifests, commit snapshots, and push arguments. — [libs/commands/version/src/lib/version-command.spec.ts#L32-46](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/version/src/lib/version-command.spec.ts#L32-L46) [libs/commands/version/src/lib/version-command.spec.ts#L91-115](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/version/src/lib/version-command.spec.ts#L91-L115)
- Publish unit tests mock packing, publishing, authentication helpers, and checkout; they assert rejected CLI options and package publication order, so those assertions do not exercise a live npm service. — [libs/commands/publish/src/lib/publish-command.spec.ts#L17-47](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/publish/src/lib/publish-command.spec.ts#L17-L47) [libs/commands/publish/src/lib/publish-command.spec.ts#L65-116](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/publish/src/lib/publish-command.spec.ts#L65-L116) [libs/commands/publish/src/lib/publish-command.spec.ts#L120-160](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/publish/src/lib/publish-command.spec.ts#L120-L160)
- Integration tests invoke the CLI on fixtures and check exec filtering, shell environment expansion, streaming, and failure codes; inspected non-bail cases are conditional on non-Windows platforms. — [integration/__tests__/lerna-exec.spec.ts#L48-96](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/integration/__tests__/lerna-exec.spec.ts#L48-L96) [integration/__tests__/lerna-exec.spec.ts#L130-173](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/integration/__tests__/lerna-exec.spec.ts#L130-L173) [integration/vitest.config.ts#L7-13](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/integration/vitest.config.ts#L7-L13)
- E2e defaults serialize spec files and retry failures up to three times; an inspected publish scenario uses localhost:4873 to verify recovery when one version already exists, and task-runner assertions check environment loading. — [vitest.shared.ts#L42-57](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/vitest.shared.ts#L42-L57) [e2e/publish/src/from-git-recover-from-error.spec.ts#L36-64](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/e2e/publish/src/from-git-recover-from-error.spec.ts#L36-L64) [e2e/run/task-runner/src/env-files/assertions.spec.ts#L25-64](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/e2e/run/task-runner/src/env-files/assertions.spec.ts#L25-L64)
- The inspected OIDC suite has two mocked cases: CircleCI token exchange and skipping unsupported CI. The ESM compatibility suite checks built output, ESM imports, synchronous require contracts, and CLI version output. — [libs/core/src/lib/oidc.spec.ts#L38-69](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/core/src/lib/oidc.spec.ts#L38-L69) [packages/lerna/src/esm-compat.spec.ts#L17-29](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/packages/lerna/src/esm-compat.spec.ts#L17-L29) [packages/lerna/src/esm-compat.spec.ts#L32-107](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/packages/lerna/src/esm-compat.spec.ts#L32-L107)
- CI defines a Node 22.22.2 package-entrypoint job, distributed Linux checks, Windows unit/integration jobs, and isolated task-runner e2e; core config excludes three config-chain suites on Windows. — [.github/workflows/ci.yml#L24-36](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/.github/workflows/ci.yml#L24-L36) [.github/workflows/ci.yml#L62-72](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/.github/workflows/ci.yml#L62-L72) [.github/workflows/ci.yml#L101-112](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/.github/workflows/ci.yml#L101-L112) [libs/core/vitest.config.ts#L17-26](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/core/vitest.config.ts#L17-L26)

Every claim links to its cited files at the pinned commit. Citations identify source evidence; they do not establish runtime correctness. Independent CodeVetter scan — not reviewed by upstream maintainers.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
