Dashboardcraftgetsentry/publish CommonJS Vitest conve…

getsentry/publish CommonJS Vitest conventions

Category: preference
Confidence: 1.00
ID: 01a07f1a-1843-7c1f-afef-4fad09cf9f2d
Project ID: e16af391-c497-4837-b681-c849a5514499
Cross-project: No
Recalled in other projects: 1
Source session: 0r59Q9fvc7NAAA5xv
Created: 2026-09-08 03:40:11
Updated: 2026-09-08 03:40:11

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 2 13h ago

Content

Use getsentry/publish conventions: kebab-case source filenames, CommonJS require/module.exports, camelCase variables/functions, UPPER_SNAKE_CASE constants and regexes, and imports ordered Node built-ins, external packages, then local modules. Tests use Vitest globals and ES modules; mock external dependencies before importing the module under test because import-time dependency capture otherwise bypasses mocks. Use descriptive errors and early validation guards; throw on unexpected states rather than silently defaulting.

Move to: