Skip to content

Commit

Permalink
chore(filenames): only change test file names
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Jun 24, 2020
1 parent 7648ece commit 69da478
Show file tree
Hide file tree
Showing 59 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/react/.storybook/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ addons.getChannel().on(CARBON_TYPE_TOKEN, ({ tokenName, tokenValue }) => {
);
});

configure(require.context('../src/components', true, /\.story\.js$/), module);
configure(require.context('../src/components', true, /\-story\.js$/), module);
2 changes: 1 addition & 1 deletion packages/react/.storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = ({ config, mode }) => {
});

config.module.rules.push({
test: /.story\.jsx?$/,
test: /-story\.jsx?$/,
loaders: [
{
loader: require.resolve('@storybook/source-loader'),
Expand Down
2 changes: 1 addition & 1 deletion packages/react/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const exec = (command, extraEnv) =>
env: Object.assign({}, process.env, extraEnv),
});

const ignoreGlobs = ['**/__tests__/*', '**/*.test.js', '**/*.story.js'].join(
const ignoreGlobs = ['**/__tests__/*', '**/*.test.js', '**/*-story.js'].join(
','
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const blacklist = new Set([
'tools',
'.DS_Store',
'index.js',
'DataTable.story.js',
'DataTable-story.js',
'__tests__',
'__mocks__',
'DataTable.js',
Expand Down

0 comments on commit 69da478

Please sign in to comment.