MCPcopy
hub / github.com/google-labs-code/design.md / buildState

Function buildState

packages/cli/src/linter/tailwind/handler.test.ts:23–31  ·  view source on GitHub ↗
(overrides: Partial<ParsedDesignSystem> = {})

Source from the content-addressed store, hash-verified

21const modelHandler = new ModelHandler();
22
23function buildState(overrides: Partial<ParsedDesignSystem> = {}) {
24 const parsed: ParsedDesignSystem = { sourceMap: new Map(), ...overrides };
25 const result = modelHandler.execute(parsed);
26 const hasErrors = result.findings.some(d => d.severity === 'error');
27 if (hasErrors) {
28 throw new Error(`Model build failed: ${result.findings.map(d => d.message).join(', ')}`);
29 }
30 return result.designSystem;
31}
32
33describe('TailwindEmitterHandler', () => {
34 // ── Cycle 22: Colors map to theme.extend.colors ─────────────────

Callers 1

handler.test.tsFile · 0.70

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…