import { render, h, describe, it, expect } from '@stencil/vitest'; import { runA11yChecks } from '../../testing/a11y'; describe('my-component', () => { it('renders', async () => { const { root } = await render(); await expect(root).toEqualHtml(` Hello, World! I'm `); }); it('has no accessibility violations', async () => { const { root } = await render(); const results = await runA11yChecks(root); expect(results).toHaveNoA11yViolations(); }); it('renders with values', async () => { const { root } = await render(); await expect(root).toEqualHtml(` Hello, World! I'm Stencil 'Don't call me a framework' JS `); }); });