Skip to content

Commit d9a8fa0

Browse files
Merge pull request #246 from microsoft/dependabotchanges-1
fix: resolved packages and testcases issue
2 parents 87c4bae + 62d4f2d commit d9a8fa0

File tree

5 files changed

+194
-461
lines changed

5 files changed

+194
-461
lines changed

ClientAdvisor/App/frontend/__mocks__/react-markdown.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ const mockNode = {
99
const mockProps = { className: 'language-javascript' };
1010

1111
const ReactMarkdown: React.FC<{ children: React.ReactNode , components: any }> = ({ children,components }) => {
12+
if(!components.code){
13+
components.code = ({ ...codeProps }) => {
14+
return <div>Test Code text from markdown </div>
15+
}
16+
}
1217
return <div data-testid="reactMockDown">
1318
{components && components.code({ node: mockNode, ...mockProps })}
1419
{children}</div>; // Simply render the children

0 commit comments

Comments
 (0)