fix: Fixed issue with running a subset of stories caused by incorrectly resolved paths.

Signed-off-by: Marley Powell <Marley.Powell@exclaimer.com>
This commit is contained in:
Marley Powell
2021-11-11 16:22:25 +00:00
parent f669d062bd
commit 0a7a2eba76
+1 -2
View File
@@ -15,8 +15,7 @@ module.exports = ({ args }) => {
'../../../plugins/search/src/**/*.stories.tsx',
];
} else {
const rootDir = path.resolve(__dirname, '../../..');
stories = args.map(arg => path.join(rootDir, arg, 'src/**/*.stories.tsx'));
stories = args.map(arg => `../../../${arg}/src/**/*.stories.tsx`);
}
return {