Skip to content

test: add comprehensive test suite with vitest - #85

Merged
dwickr merged 1 commit into
masterfrom
add-tests
Feb 10, 2026
Merged

dwickr merged 1 commit into
masterfrom
add-tests

Conversation

@dwickr

@dwickr dwickr commented Feb 10, 2026 •

Copy link
Copy Markdown
Contributor

Note: this was mostly AI generated

  • Add test files for all API endpoints (auth, directory, groupconvos, messages, rooms, statistics)
  • Create test infrastructure with mocks for WickrIOAPI and logger
  • Configure vitest with coverage reporting
  • Modify web_interface.js to support test mode:
    • Allow mock API injection for testing
    • Skip bot initialization in test environment
    • Fix ttl/bor parameter handling (check undefined instead of falsy)
    • Export app and main for test imports
  • Add test server setup with auth helpers

Comment thread .github/workflows/ci.yml Fixed
Comment thread .github/workflows/ci.yml Fixed
@dwickr
dwickr force-pushed the add-tests branch 3 times, most recently from 38dcb0a to 513ee94 Compare February 10, 2026 12:39
- Add test files for all API endpoints (auth, directory, groupconvos, messages, rooms, statistics)
- Create test infrastructure with mocks for WickrIOAPI and logger
- Configure vitest with coverage reporting
- Modify web_interface.js to support test mode:
  - Allow mock API injection for testing
  - Skip bot initialization in test environment
  - Fix ttl/bor parameter handling (check undefined instead of falsy)
  - Export app and main for test imports
- Add test server setup with auth helpers
@dwickr
dwickr marked this pull request as ready for review February 10, 2026 12:50
@dwickr
dwickr merged commit 5d823ff into master Feb 10, 2026
6 checks passed
@dwickr
dwickr deleted the add-tests branch February 10, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants