Skip to content

Dead files and broken test:cli / test:version scripts #10

Description

@dickhardt
  • Dead files (knip, verified by grep — nothing imports or invokes them): src/legal_generator.js, test-mcp-stdio.js, test-svg-upload.js, test/integration.test.js, test/test-runner.js. test/integration/http.test.js is a 1-byte empty file.
  • test/cli.test.js and test/version.test.js spawn bin/cli.js, which does not exist. npm run test:cli / npm run test:version fail on main today (0/4); they are not part of npm test. Delete the tests and scripts, or add the CLI.
  • Unused exports (knip) in src/config.js, src/log.js, src/jwt-validation.js (jwtValidationMiddleware is an Express-style leftover that logs its own deprecation), src/utils.js.
  • scripts/test-integration-mocha.sh waits a fixed 3 s after docker compose up -d; a run right after a previous one can fail 27 tests until the old compose is torn down.

Found during the Node 24 / dependency upgrade, 2026-09-06 (see chore/deps-prune branch)

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions