diff --git a/storybook/tsconfig.docgen.json b/storybook/tsconfig.docgen.json index 5d14e956ef7753..5bc29b17bb62c9 100644 --- a/storybook/tsconfig.docgen.json +++ b/storybook/tsconfig.docgen.json @@ -7,5 +7,12 @@ "rootDir": ".." }, "references": [], - "include": [ "**/*.ts", "**/*.tsx", "../packages/*/src/**/*" ] + "include": [ "**/*.ts", "**/*.tsx", "../packages/*/src/**/*" ], + // Override the base exclusions to admit stories without also admitting tests. + "exclude": [ + "../**/benchmark", + "../**/test/**", + "../**/tests/**", + "../**/__tests__/**" + ] }