Skip to content

Commit

Permalink
Merge pull request #25 from kadirahq/ignore-stories
Browse files Browse the repository at this point in the history
Rename ignore to exclude.
  • Loading branch information
roonyh committed Sep 27, 2016
2 parents d976c39 + aeba2bd commit 5673230
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli.js
Expand Up @@ -17,7 +17,7 @@ program
.option('-i, --update-interactive [boolean]',
'Update saved story snapshots interactively')
.option('-g, --grep [string]', 'only test stories matching regexp')
.option('-i, --ignore [string]', 'ignore stories matching regexp')
.option('-x, --exclude [string]', 'exclude stories matching regexp')
.option('-w, --watch [boolean]', 'watch file changes and rerun tests')
.option('--polyfills [string]', 'add global polyfills')
.option('--loaders [string]', 'add loaders')
Expand All @@ -28,7 +28,7 @@ const {
polyfills: polyfillsPath = require.resolve('./default_config/polyfills.js'),
loaders: loadersPath = require.resolve('./default_config/loaders.js'),
grep,
ignore,
exclude,
} = program;

const configPath = path.resolve(`${configDir}`, 'config');
Expand Down Expand Up @@ -72,7 +72,7 @@ async function main() {
// We need to polyfill it for the server side.
const channel = new EventEmitter();
addons.setChannel(channel);
await runner.run(filterStorybook(storybook, grep, ignore));
await runner.run(filterStorybook(storybook, grep, exclude));
} catch (e) {
console.log(e.stack);
}
Expand Down

0 comments on commit 5673230

Please sign in to comment.