Skip to content

Commit 0975553

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
test(chat): preserve EMCN exports in message mock
1 parent 8d9f48c commit 0975553

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/sim/app/(interfaces)/chat/components/message/message.test.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { act } from 'react'
55
import { createRoot, type Root } from 'react-dom/client'
66
import { afterEach, describe, expect, it, vi } from 'vitest'
77

8-
vi.mock('@sim/emcn', () => ({
8+
vi.mock('@sim/emcn', async (importOriginal) => ({
9+
...(await importOriginal<typeof import('@sim/emcn')>()),
910
Button: ({ children, ...props }: { children?: React.ReactNode; [key: string]: unknown }) => (
1011
<button type='button' {...props}>
1112
{children}

0 commit comments

Comments
 (0)