Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4fefaa3
feat: adds unit tests for terminate session handler
swagnikdutta Feb 27, 2026
f88f0c0
adds unit test for awareness handler
swagnikdutta Feb 28, 2026
92e12e1
chore: adds unit-tests for disconnecting handler
swagnikdutta Mar 3, 2026
a0b6057
chore: adds unit test for peers list handler
swagnikdutta Mar 3, 2026
b3a4ad6
chore: injects mongostore as a dependency in handler
swagnikdutta Mar 4, 2026
bb22aa6
feat: adds unit tests for update history handler
swagnikdutta Mar 4, 2026
5657865
chore: adds unit tests for update commit handler
swagnikdutta Mar 4, 2026
bfc464c
chore: injecting dependencies on remaining handlers
swagnikdutta Mar 4, 2026
34c9907
feat: adds unit test for auth handler
swagnikdutta Mar 5, 2026
f52fd1b
chore: adds unit tests for document commit handler
swagnikdutta Mar 5, 2026
b38822e
chore: adds test for document commit handler
swagnikdutta Mar 5, 2026
27750cf
chore: adds missing dependency for generating coverage
swagnikdutta Mar 5, 2026
2b12c54
chore: adds additional test in auth handler to cover few failure cases
swagnikdutta Mar 5, 2026
8b7fba5
chore(unit-tests): fixes breaking unit-tests
swagnikdutta Mar 9, 2026
c4273d1
updates vitest config
swagnikdutta Mar 9, 2026
a611ff4
minor: updates gitignore
swagnikdutta Mar 10, 2026
5a65351
adds more test to increase coverage
swagnikdutta Mar 10, 2026
3cddfcc
chore: replaced called with calledWith to avoid brittle tests
swagnikdutta Mar 10, 2026
11367d4
minor: adds a missing assertion
swagnikdutta Mar 10, 2026
73e34c5
refactor: moved all tests under separate directory
swagnikdutta Mar 10, 2026
34ee009
tests: updated tests as pagination was removed from getUpdatesByDocum…
swagnikdutta Mar 18, 2026
ec0d683
minor: updates .gitignore
swagnikdutta Mar 18, 2026
4e3df4c
chore: adds github actions workflow to run unit tests on raised PR
swagnikdutta Mar 18, 2026
488aa15
tests: fixed unit test
swagnikdutta Mar 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Unit Tests

on:
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Run unit tests
run: npm test -- --run
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ scripts.ts

# .md files
dev-journal.md
CLAUDE.md

# docs
docs/
Loading
Loading