diff --git a/scripts/jest.init.ts b/scripts/jest.init.ts index d7e36661cb6..d48d1a7bcb1 100644 --- a/scripts/jest.init.ts +++ b/scripts/jest.init.ts @@ -44,6 +44,8 @@ const ignoreList = [ (error: any) => error.message.includes('react-async-component-lifecycle-hooks') && error.stack.includes('addons/knobs/src/components/__tests__/Options.js'), + // Storyshots blows up if your project includes a .docs.mdx file (react-ts does). + (error: any) => error.message.match(/Unexpected error while loading .*\.docs\.mdx/), ]; const throwMessage = (type: any, message: any) => {