import fs from 'fs' import path from 'path' import { mount } from '@vue/test-utils' import { describe, it, expect } from 'vitest' const pagesDir = path.resolve(__dirname, '../pages') const pages = fs.readdirSync(pagesDir).filter(f => f.endsWith('.vue')) describe('Sanity check: pages mount correctly', () => { for (const page of pages) { it(`should mount ${page} without unresolved components`, async () => { const Page = (await import(path.join(pagesDir, page))).default expect(() => mount(Page)).not.toThrow() }) } })