import { existsSync } from 'fs' import { join } from 'path' import { describe, it, expect } from 'vitest' const ROOT = join(import.meta.dirname, '../..') const REQUIRED_ARTIFACTS = [ 'out/main/index.js', 'out/preload/index.js', 'out/renderer/index.html' ] describe('release gate: build artifacts', () => { it('UT-RELEASE-02: production build outputs exist', () => { const missing = REQUIRED_ARTIFACTS.filter((rel) => !existsSync(join(ROOT, rel))) expect(missing, `Run npm run build first. Missing: ${missing.join(', ')}`).toEqual([]) }) })