// @vitest-environment node import { describe, it, expect, beforeEach, afterEach } from 'vitest'; import { mkdirSync, rmSync, readFileSync } from 'node:fs'; import { join } from 'node:path'; import { tmpdir } from 'node:os'; import { writeManifest } from '../writer'; import type { ComponentEntry } from '../schema'; const sampleEntry: ComponentEntry = { name: 'Button', type: 'simple', figma: { fileKey: 'ABC123', nodeId: '1:2', url: 'https://www.figma.com/design/ABC123/F?node-id=1-2', }, imports: { primary: "import { Button } from '@discourser/design-system/Button'", namedExports: ['Button'], subpath: '@discourser/design-system/Button', }, props: [{ name: 'label', type: 'string', required: true }], example: '