diff --git a/docs/docusaurus/.gitignore b/docs/docusaurus/.gitignore index 3c6ee54e99db..6c02775e3926 100644 --- a/docs/docusaurus/.gitignore +++ b/docs/docusaurus/.gitignore @@ -1,3 +1,4 @@ __MACOSX oss_docs_versions.zip docs/reference/api +/coverage/ diff --git a/docs/docusaurus/__mocks__/@theme/ThemedImage.js b/docs/docusaurus/__mocks__/@theme/ThemedImage.js new file mode 100644 index 000000000000..edf3157317e7 --- /dev/null +++ b/docs/docusaurus/__mocks__/@theme/ThemedImage.js @@ -0,0 +1,6 @@ +import React from 'react'; +export default function ThemedImage(props) { + return ( +
+ ) +} \ No newline at end of file diff --git a/docs/docusaurus/jest.config.js b/docs/docusaurus/jest.config.js index c4908f5321db..612e045628d1 100644 --- a/docs/docusaurus/jest.config.js +++ b/docs/docusaurus/jest.config.js @@ -8,6 +8,7 @@ module.exports = { "\\.(s?)css$": "identity-obj-proxy", "@docusaurus/(BrowserOnly|ComponentCreator|constants|ExecutionEnvironment|Head|Interpolate|isInternalUrl|Link|Noop|renderRoutes|router|Translate|use.*)": "identity-obj-proxy", + "@theme/ThemedImage": "