Skip to content

Instantly share code, notes, and snippets.

View marioleon-ctaima's full-sized avatar

marioleon-ctaima

View GitHub Profile
@marioleon-ctaima
marioleon-ctaima / twind-mock-subcontract-scope-error.js
Created March 27, 2026 09:13
Twind: mock POST /subcontracts → SUBCONTRACT_SCOPE_OUTSIDE_PARENT_ENGAGEMENT (browser console repro)
/**
* Browser console: mock POST …/subcontracts → 400 SUBCONTRACT_SCOPE_OUTSIDE_PARENT_ENGAGEMENT
*
* Use when the UI scope picker cannot produce an invalid scope so the real API
* error cannot be triggered from the form alone.
*
* Paste in DevTools Console before submitting Create subcontract. Reload the tab to restore fetch.
*
* @see packages/http/src/request.ts — fetch is called with URL as first argument (not only string/Request)
*/