Skip to content

Support caching for unit tests in Jest/Vitest (similar to Pytest implementation) #2043

@SujayPrabhu96

Description

@SujayPrabhu96

Feature request

We would like to request caching support for unit tests when using LangSmith with Jest/Vitest.

  1. Currently, caching appears to be implemented only for Pytest.
  2. No PRs or issues seem to exist for extending this to Jest/Vitest.
  3. Adding this would help reduce cost and improve efficiency when repeatedly running tests for AI agents.

Motivation

Running AI agent tests can be expensive and time-consuming. In Pytest, caching alleviates this by reusing previous results. Extending similar functionality to Jest/Vitest would:

  • Make testing workflows more efficient.
  • Reduce repeated costs during CI/CD pipelines.

Questions

  • Is there any ongoing work to support this in Jest/Vitest?
  • If not, would the maintainers be open to community contributions?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions