question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unclear documentation for storyKindRegex and "story kinds"

See original GitHub issue

What is a “story kind”? I’m trying to work with the storyKindRegex, but I’m not finding any documentation on what a story kind is. Is it a reference to a file name? File extension? Something to do with the component type? The storybook entry strings?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
sergej-scommented, Sep 16, 2019

@holmesal It seems that adding storyNameRegex along with storyKindRegex does work:

storyKindRegex: /^MyComponent$/,
storyNameRegex: /^((?!.*?DontTest).)*$/,
storiesOf('MyComponent', module)
  .add(`Playground (DontTest)`, () => {
     ...
1reaction
holmesalcommented, Sep 5, 2019

How can we exclude individual stories by name?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Storyshots Addon | Storybook: Frontend workshop for UI ...
Each kind of story is written into its own snapshot file with the use of getSnapshotFileName . Add stories of UserForm in the...
Read more >
Jest - Storyshot - getCustomBrowser - how to manage?
Having issue where i want to use a custom browser for storyshot with jest but I'm having a hard time finding any example...
Read more >
Build and Document React Components With Storybook
Storybook is an awesome tool to help you build, demo, and document component libraries. Let's learn all about it in this tutorial!
Read more >
@storybook/addon-storyshots - npm
Take a code snapshot of every story automatically with Jest. Latest version: 6.5.15, last published: 4 days ago.
Read more >
@storybook/addon-info: Versions | Openbase
Node-logger: Move @types/npmlog to dependencies (#9538); Core: Fix legacy story URLs (#9545); Addon-docs: Convert default prop value to string (#9525) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found