mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-07-22 09:36:53 +00:00
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> |
||
|---|---|---|
| .. | ||
| backend | ||
| backend-new | ||
| container | ||
| frontend | ||
| frontend-new | ||
| 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