I'm using the following versions for the packages below:
"@storybook/test-runner": "^0.13.0",
"@testing-library/jest-dom": "^6.1.3",
"@testing-library/react": "^14.0.0"
main.ts:
module.exports = {
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx|mdx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'storybook-addon-intl',
'@storybook/addon-docs',
'@storybook/addon-a11y',
'@storybook/addon-mdx-gfm',
],
framework: {
name: '@storybook/react-vite',
options: {},
},
features: {
storyStoreV7: true,
previewMdx2: true,
interactionsDebugger: true,
buildStoriesJson: true,
}```
Scripts being used:
"build-storybook": "storybook build",
"test-storybook": "test-storybook",
"test-storybook:ci": "concurrently -k -s first -n "SB,TEST" -c "magenta,blue" "yarn build-storybook --quiet && npx http-server storybook-static --port 6006 --silent" "wait-on tcp:6006 && yarn test-storybook"",
While I run `test-storybook:ci` locally, it runs fine in terminal but not in CI pipeline.
Am I missing something ?
Found a similar issue on GitHub: https://github.com/storybookjs/storybook/issues/19350#issuecomment-1268180590
Any help would be appreciated. 🙏