Skip to content

test(frontend): re-enable stale skipped suites (D-0098, partial) - #214

Merged
acamarata merged 1 commit into
mainfrom
dw1-nchat-2
Oct 25, 2026
Merged

acamarata merged 1 commit into
mainfrom
dw1-nchat-2

Conversation

@acamarata

Copy link
Copy Markdown
Collaborator

D-0098 (partial): frontend skipped tests

Row still applies on origin/main: about 226 describe.skip / it.skip / xdescribe hits across 89 files under frontend/src (plus e2e). This PR does the cheap slice only: suites whose skip is stale.

What changed

Un-skipped 17 describe blocks in 8 files and removed their stale "Skipped:" comments. No test bodies changed.

File Old skip reason
components/admin users-management mock updates
components/channel channel-list mock updates
components/chat message-item mock updates
components/thread thread-panel, thread-preview, thread-sidebar mock updates
hooks use-message-actions hook API mismatch
services/jobs scheduler.service BullMQ ESM import error

Method

Removed every skip in all 89 files, ran each file alone (jest --maxWorkers=1, 150 s cap, TZ=America/New_York). Result: 9 pass, 78 fail, 1 timed out, 1 aborted (use-search-suggestions, use-attachments: hang / memory, consistent with the recorded "memory issue" reason). Kept the 8 that pass. Reverted the 9th, lib/e2ee/group-session: it passes on local Node 26, but its comment says it fails on CI's Node 20, so I could not verify it here.

Not done (row stays open)

About 80 files fail when un-skipped. They need the per-suite classify-and-fix the row describes (real regression / stale mock / delete). The largest groups are formatter.service (hand-rolled marked / DOMPurify mocks in src/__tests__/mocks), the hooks suites with API mismatch, realtime/webrtc and the 14 e2e skips. None of that is a small single-purpose change. Suggested follow-up: one ticket per suite, plus a lint rule that rejects .skip without an issue link.

Verification

  • TZ=America/New_York npx jest --forceExit --maxWorkers=2 on the 8 files: 8 suites, 208 tests passed, 0 skipped.
  • eslint on the 8 files: 0 errors (2 existing unused-directive warnings in users-management).
  • prettier --check: clean.

…d (D-0098)

Un-skips 17 describe blocks across 8 files whose skip reasons (mock updates,
BullMQ ESM, hook API mismatch) no longer hold. 208 tests pass; the stale
skip comments are removed with them.
@github-actions

Copy link
Copy Markdown

Security Scan Results: PASSED

Scanner Critical High
SAST 0 0
Dependencies 0 0

@github-actions

Copy link
Copy Markdown

PR Checks Summary

Check Status
Lint & Format ✅ success
Type Check ✅ success
Unit Tests ❌ failure
Build ✅ success

❌ Some checks failed. Please review the errors above.

@acamarata
acamarata merged commit a3a5bc3 into main Oct 25, 2026
41 of 46 checks passed
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.

1 participant