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
JavaScriptlangsmithvitest
Module●Since v0.3

vitest

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

Functions

function
wrapVitest→ __type

Dynamically wrap original Vitest imports.

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

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
LangSmithJestlikeWrapperParams: __type & Pick<CreateExampleOptions, "split" | "metadata">
typeAlias
SimpleEvaluationResult
typeAlias
SimpleEvaluator: (params: SimpleEvaluatorParams)

Variables

variable
describe: LangSmithJestlikeDescribeWrapper & __type
variable
expect: any
variable
it: (name: string, lsParams: LangSmithJestlikeWrapperParams<I, O>, testFn: LangSmithJestlikeTestFunction<I, O>, timeout?: number)
variable
logFeedback: (feedback: SimpleEvaluationResult, config?: __type)
variable
logOutputs: (output: Record<string, unknown>)
variable
test: (name: string, lsParams: LangSmithJestlikeWrapperParams<I, O>, testFn: LangSmithJestlikeTestFunction<I, O>, timeout?: number)
variable
wrapEvaluator: (evaluator: (input: I) => O | Promise<O>)
View source on GitHub