mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-12-06 07:34:00 +00:00
Install @perfect-design/ui 0.3.10 with the workbench style pack, IBM Plex faces and the inline theme boot script. The app shell uses AppHeader, AppShell and SidebarNav. Shared formatters, severity tones and icon data replace the per-view copies. A test checks that main.css scans only the library directories the app imports.
15 lines
569 B
TypeScript
15 lines
569 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { defineComponent, h } from 'vue'
|
|
import { Input } from '@perfect-design/ui'
|
|
import { mountStrict } from './mountStrict'
|
|
|
|
describe('mountStrict', () => {
|
|
it('reports a library contract violation, so an empty list in a smoke test means something', async () => {
|
|
const Unnamed = defineComponent({ render: () => h(Input) })
|
|
const { problems, restore } = await mountStrict(Unnamed)
|
|
restore()
|
|
expect(problems.length).toBeGreaterThan(0)
|
|
expect(problems.join(' ')).toMatch(/accessible name/i)
|
|
})
|
|
})
|