Skip to content

Commit

Permalink
Added a FAQ section
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday authored and benediktvaldez committed Apr 5, 2017
1 parent 557fbfa commit 44502b9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/docs/react-storybook/basics/faq.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { stripIndent } from 'common-tags';

export default {
id: 'faq',
title: 'Frequently Asked Questions',
content: stripIndent`
Here are some answers to frequently asked questions. If you have a question, you can ask it by opening an issue on the [Storybook Repository](https://github.com/storybooks/react-storybook/).
### How can I run coverage tests with Create React App and leave out stories?
Create React App does not allow providing options to Jest in your \`package.json\`, however you can run \`jest\` with commandline arguments:
~~~
npm test -- --coverage --collectCoverageFrom='["src/**/*.{js,jsx}","!src/**/stories/*"]'
~~~
`,
};
1 change: 1 addition & 0 deletions src/docs/react-storybook/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default [
require('./basics/slow-start-guide').default,
require('./basics/writing-stories').default,
require('./basics/exporting-storybook').default,
require('./basics/faq').default,
]
},
{
Expand Down

0 comments on commit 44502b9

Please sign in to comment.