CI / lint-and-format (push) Successful in 35s
CI / changeset-check (push) Successful in 30s
CI / unit-tests (push) Successful in 40s
CI / component-tests (push) Successful in 34s
CI / lint-and-format (pull_request) Successful in 43s
CI / changeset-check (pull_request) Successful in 32s
CI / unit-tests (pull_request) Successful in 35s
CI / component-tests (pull_request) Successful in 34s
- stencil does not generate a readme.md in every component. The option was disabled in the configuration - Fixed all prettier errors
20 lines
486 B
TypeScript
20 lines
486 B
TypeScript
import { newSpecPage } from '@stencil/core/testing';
|
|
import { BarChart } from '../bar-chart';
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
describe('bar-chart', () => {
|
|
it('renders', async () => {
|
|
const page = await newSpecPage({
|
|
components: [BarChart],
|
|
html: `<bar-chart></bar-chart>`,
|
|
});
|
|
expect(page.root).toEqualHtml(`
|
|
<bar-chart>
|
|
<mock:shadow-root>
|
|
<slot></slot>
|
|
</mock:shadow-root>
|
|
</bar-chart>
|
|
`);
|
|
});
|
|
});
|