import { describe, expect, it } from 'vitest' // @ts-expect-error The test runner provides Node; the browser bundle intentionally omits @types/node. import { readFileSync } from 'node:fs' const styles = readFileSync(new URL('./styles.css', import.meta.url), 'utf8') describe('mobile workspace navigation styles', () => { it('keeps only the active workspace tab and hamburger navigation on narrow screens', () => { expect(styles).toMatch(/@media \(max-width: 760px\)[\s\S]*?\.workspace-tab:not\(\.active\)\s*\{\s*display:\s*none;/) expect(styles).toMatch(/@media \(max-width: 760px\)[\s\S]*?\.workspace-context-tabs\s*\{\s*display:\s*none;/) }) })