A next-generation tool to create blazing-fast documentation sites
API
created:4/30/2021
updated:4/30/2021
loc
21
comments
19%
passed
12
coverage
100%

ComponentSource

avatar of atanasster

Displays import statement for a component as well as the component file source code Optionally also displays some repository information from the component's package.json

Tests results

Status
Full name
Title
Time(ms)
ComponentSource.test.ts(12 tests)
passed
ComponentSource > overview
snapshot
178
passed
ComponentSource > overview
accessibility
523
passed
ComponentSource > theme
snapshot
42
passed
ComponentSource > theme
accessibility
267
passed
ComponentSource > title
snapshot
84
passed
ComponentSource > title
accessibility
439
passed
ComponentSource > customTitle
snapshot
70
passed
ComponentSource > customTitle
accessibility
493
passed
ComponentSource > notCollapsible
snapshot
78
total 12 tests

Tests coverage

Kind
Total
Covered
Skipped
%
ComponentSource.tsx
lines
6
6
0
100%
functions
2
2
0
100%
statements
7
7
0
100%
branches
0
0
0
100%

A11y tests

import { Button } from '../../components/button-named-arrow-func';

Viewport

import { Button } from '../../components/button-named-arrow-func';
320px
import { Button } from '../../components/button-named-arrow-func';
375px
import { Button } from '../../components/button-named-arrow-func';
768px
import { Button } from '../../components/button-named-arrow-func';
1024px