File tree Expand file tree Collapse file tree
libs/shared/devops-copilot/feature/src/lib/devops-copilot-panel/message-list Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { type ReactNode , createRef , forwardRef } from 'react'
1+ import { createRef } from 'react'
22import { render , screen } from '@qovery/shared/util-tests'
33import { type Message , type PlanStep } from '../devops-copilot-panel'
44import { renderStreamingMessageWithMermaid } from '../streaming-mermaid-renderer/streaming-mermaid-renderer'
55import { MessageList } from './message-list'
66
77jest . mock ( '@qovery/shared/ui' , ( ) => {
8+ const React = require ( 'react' )
89 return {
9- ScrollArea : forwardRef < HTMLDivElement , { children : ReactNode ; className ?: string } > (
10- ( { children, className } , ref ) => (
11- < div ref = { ref } className = { className } >
12- { children }
13- </ div >
14- )
15- ) ,
16- Button : ( { children, onClick, className } : { children : ReactNode ; onClick : ( ) => void ; className ?: string } ) => (
10+ ScrollArea : React . forwardRef ( ( { children, className } : any , ref : any ) => (
11+ < div ref = { ref } className = { className } >
12+ { children }
13+ </ div >
14+ ) ) ,
15+ Button : ( { children, onClick, className } : any ) => (
1716 < button onClick = { onClick } className = { className } >
1817 { children }
1918 </ button >
You can’t perform that action at this time.
0 commit comments