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.
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:testrunner so no additional test framework is required. Add focused tests for pure or mockable modules such asConfig,runtime/Logger, andmessages/Utils, and expose them through annpm testscript.Acceptance criteria
npm testexists and succeeds in an offline checkout.