A next-generation tool to create blazing-fast documentation sites
API
created:3/5/2021
updated:3/5/2021
loc
42
comments
26%
passed
12
coverage
75%

StorySource

avatar of atanasster

Display source code of a story. If controls are used, all story arguments will be highlighted. Additional commands are made available if the repository data of the story is available.

Tests results

Status
Full name
Title
Time(ms)
StorySource.test.ts(12 tests)
passed
StorySource > overview
snapshot
283
passed
StorySource > overview
accessibility
544
passed
StorySource > theme
snapshot
107
passed
StorySource > theme
accessibility
564
passed
StorySource > themeSelector
snapshot
93
passed
StorySource > themeSelector
accessibility
483
passed
StorySource > customTitle
snapshot
62
passed
StorySource > customTitle
accessibility
413
passed
StorySource > notCollapsible
snapshot
40
total 12 tests

Tests coverage

Kind
Total
Covered
Skipped
%
StorySource.tsx
lines
11
11
0
100%
functions
1
1
0
100%
statements
12
12
0
100%
branches
4
3
0
75%

A11y tests

() => 'hello'

Viewport

() => 'hello'
320px
() => 'hello'
375px
() => 'hello'
768px
() => 'hello'
1024px