LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Traceable
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerTraceableJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithjest
Module●Since v0.3

jest

Copy
import { ... } from "langsmith/jest";

Functions

function
wrapEvaluator→ (input: I, config?: Partial<RunTreeConfig> & __type) => Promise<O>
function
wrapJest→ __type
function
logFeedback
function
logOutputs

Type Aliases

typeAlias
LangSmithJestlikeDescribeWrapper: (name: string, fn: () => void | Promise<void>, config?: LangSmithJestlikeDescribeWrapperConfig)
typeAlias
LangSmithJestlikeDescribeWrapperConfig: __type & Partial<Omit<CreateProjectParams, "referenceDatasetId">>
typeAlias
LangSmithJestlikeTestFunction: (data: __type & Record<string, any>)
typeAlias
LangSmithJestlikeTestMetadata
typeAlias
LangSmithJestlikeWrapperConfig: Partial<Omit<RunTreeConfig, "client">> & __type
typeAlias
SimpleEvaluationResult
typeAlias
SimpleEvaluator: (params: SimpleEvaluatorParams)
typeAlias
LangSmithJestlikeWrapperParams: __type & Pick<CreateExampleOptions, "split" | "metadata">

Variables

variable
describe: LangSmithJestlikeDescribeWrapper & __type
variable
expect: any
variable
it: (name: string, lsParams: LangSmithJestlikeWrapperParams<I, O>, testFn: LangSmithJestlikeTestFunction<I, O>, timeout?: number)
variable
test: (name: string, lsParams: LangSmithJestlikeWrapperParams<I, O>, testFn: LangSmithJestlikeTestFunction<I, O>, timeout?: number)
View source on GitHub

Dynamically wrap original Jest imports.

This may be necessary to ensure you are wrapping the correct Jest version if you are using a monorepo whose workspaces use multiple versions of Jest.