import { describe, it, expect } from 'bun:test'; import { existsSync, readFileSync } from 'fs'; import { join } from 'path'; const publicDir = join(process.cwd(), 'public'); const cssDir = join(publicDir, 'css'); describe('CSS Extraction', () => { describe('CSS Files Exist', () => { it('should have base.css file', () => { const cssPath = join(cssDir, 'base.css'); expect(existsSync(cssPath)).toBe(true); }); it('should have components.css file', () => { const cssPath = join(cssDir, 'components.css'); expect(existsSync(cssPath)).toBe(true); }); it('should have home page CSS file', () => { const cssPath = join(cssDir, 'pages', 'home.css'); expect(existsSync(cssPath)).toBe(true); }); it('should have property detail page CSS file', () => { const cssPath = join(cssDir, 'pages', 'property.css'); expect(existsSync(cssPath)).toBe(true); }); it('should have admin panel CSS file', () => { const cssPath = join(cssDir, 'pages', 'admin.css'); expect(existsSync(cssPath)).toBe(true); }); }); describe('Inline Styles', () => { it('should have inline styles in index.html', () => { const html = readFileSync(join(publicDir, 'index.html'), 'utf-8'); expect(html).toContain('