Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

674 B
Raw Blame
import type { ReactElement, ReactNode } from 'react'
import { render } from '@testing-library/react'
import DebugConfigurationContext from '@/context/debug-configuration'
import { createDebugConfigurationFixture } from '@/test/fixtures/debug-configuration'

export function renderWithDebugConfiguration(
  ui: ReactElement,
  overrides: Parameters<typeof createDebugConfigurationFixture>[0] = {},
) {
  const value = createDebugConfigurationFixture(overrides)
  return render(ui, {
    wrapper: ({ children }: { children: ReactNode }) => (
      <DebugConfigurationContext.Provider value={value}>
        {children}
      </DebugConfigurationContext.Provider>
    ),
  })
}