etherpad-lite/src/tests
SamTV12345 afc1007503 test: convert remaining backend integration/unit specs from CJS require to ESM
Migrates the remaining 19 test files in tests/backend/specs to static ESM
imports: anonymizeAuthor, authorTokenCookie, colorutils, compactPad,
openapi-admin, padDeletionManager, padInsertAuthorInvariant,
proxyPathRedirect, pwaManifest, sessionIdCookie, settingsModalHeading,
socialMeta-unit, socialMeta, timesliderRedirect, tokenTransfer,
updateActions, updateStatus, updater-integration, and urlBasePath.

Key decisions:
- colorutils cast to `any` (source is @ts-nocheck with untyped empty object)
- compactPad/sessionIdCookie use default assert import for bare assert() calls
- plugin_defs uses default import (module uses export default)
- updateStatus/updateActions use top-level import for updateStatus module
  and access _resetBadgeCacheForTests via the imported namespace

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 14:14:55 +02:00
..
backend test: convert remaining backend integration/unit specs from CJS require to ESM 2026-05-25 14:14:55 +02:00
backend-new fix(vitest): alias ep_etherpad-lite/* to source to avoid double-loading 2026-05-25 13:23:34 +02:00
container fix(vitest): alias ep_etherpad-lite/* to source to avoid double-loading 2026-05-25 13:23:34 +02:00
frontend
frontend-new Merge branch 'develop' into backend-esm-vitest 2026-05-25 11:56:32 +02:00
ratelimit
README.md
settings.json

About this folder: Tests

Before running the tests, start an Etherpad instance on your machine.

Frontend

To run the frontend tests, point your browser to <yourdomainhere>/tests/frontend

Backend

To run the backend tests, run cd src and then npm test