Skip to content

Run every unit suite from the default local test command #87

Closed

Description

@BinaryOutlook

A successful local npm test can omit six existing unit files. Use one complete unit-test entry point for contributors and CI so adding a file does not silently leave it outside the default local checks.

Priority: P2 / Medium — contributor feedback gap. CI already runs the complete unit glob; this is not a claim that those tests are missing from CI.

Reproduction and findings

  1. List test/unit/*.test.js in the audited checkout: 31 files.
  2. Follow the scripts invoked by scripts.test in package.json and expand their unit-file selections: 25 files.
  3. Compare the sets. The default local command omits:
link-opener.test.js
native-directory-identity.test.js
native-processes.test.js
native-replace-file.test.js
pr-ci-approval.test.js
vscode-cli.test.js

The complete node --test test/unit/*.test.js invocation used by the audit passed 312 tests with the real-converter and package prerequisites enabled. This does not make the default command's discovery complete.

Scope and acceptance criteria

  • Introduce a canonical complete unit entry point and reuse it from the default local command and CI.
  • Preserve useful focused commands, compilation/lint prerequisites, and browser-test behavior.
  • Keep converter/archive opt-in prerequisites and skip reporting explicit; ordinary local checks must not falsely claim candidate-level validation.
  • Verify file discovery on supported shells/platforms and demonstrate that a newly added intended unit file is included.

Source evidence

See package scripts and the CI unit glob. A test's existence alone is not evidence that the default entry point executes it.

Build identity and verification boundary

Recorded during the 2026-09-27 audit of #80 at ffbdad524d393aa783760f4829cb995d8b9d6405 (package version 0.4.0), using Node 24.21.0 on macOS ARM64. The tested product source was unmodified. This is an unreleased development snapshot.

Findings are from repository inspection and the specific checks described above. They are scoped to the recorded revision; a passing broader suite does not resolve these findings.

Reproduce and validate changes using the checkout's build guide and testing guide. Keep evidence synthetic and sanitized.

Activity

  1. added
    bug
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions