Skip to content

Add an offline startup smoke-test command #37

Description

@cubrift

Problem

The project has a setup script but no test command. There is no quick, offline check that verifies the reorganized runtime, configuration, and utility modules can be loaded without opening WhatsApp, calling OpenAI/Giphy, or creating an authenticated session.

Expected behavior

Contributors should be able to run one command after installation to catch basic module-loading and helper regressions.

Suggested direction

Use Node's built-in node:test runner so no additional test framework is required. Add focused tests for pure or mockable modules such as Config, runtime/Logger, and messages/Utils, and expose them through an npm test script.

Acceptance criteria

  • npm test exists and succeeds in an offline checkout.
  • Tests do not require WhatsApp credentials, API calls, or a live QR server.
  • Tests cover at least one utility behavior and one configuration/runtime behavior.
  • A failing assertion produces a non-zero exit code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    codexUse for codex-generated issues only.enhancementPerformance update or requestgood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions