Custom Checkpoint Validation not working #274

Closed
opened 2026-02-15 18:15:23 -05:00 by yindo · 2 comments
Owner

Originally created by @tanshunyuan on GitHub (Jun 6, 2025).

Context

I've decided to implement my own firestore checkpoint validation, and now I'm trying to run the test set by this documentation. However, after following the instructions of the documentation I can't seem to get the test to work

Reproduction

I've included a repo for reproduction, here is the link. This also includes the custom firestore checkpointer i've implemented, packages and the system version.

To get it running, ensure that you've:

  1. Node v22.4.1
  2. Run npm install to install the required dependencies
  3. Execute either of the following command, both will throw different errors
    3a. npx @langchain/langgraph-checkpoint-validation ./test/firestore_initializer.ts
    3b. validate-checkpointer ./test/firestore_initializer.ts

Error Details

3a. (Preset ts-jest/presets/default-esm not found)

Running npx @langchain/langgraph-checkpoint-validation ./test/firestore_initializer.ts, threw the following error.

No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
No files found in /lg-custom-validation/node_modules/@langchain/langgraph-checkpoint-validation/dist.
Make sure Jest's configuration does not exclude this directory.
To set up Jest, make sure a package.json file exists.
Jest Documentation: https://jestjs.io/docs/configuration
Pattern:  - 0 matches

I'm not sure why it's throwing a no test found when there are actually test in the node_modules/@langchain/langgraph-checkpoint-validation/dist

Image

3b. (Preset ts-jest/presets/default-esm not found)

Globally installing checkpoint-validation with the following command, doesn't work.

npm install -g @langchain/langgraph-checkpoint-validation
validate-checkpointer ./src/my_initializer.ts

Running validate-checkpointer ./test/firestore_initializer.ts throws the following error:

node:internal/modules/run_main:115
    triggerUncaughtException(
    ^

[● Validation Error:

  Preset ts-jest/presets/default-esm not found.

  Configuration Documentation:
  https://jestjs.io/docs/configuration
]

Node.js v22.4.1

But my jest configuration does exist here

Originally created by @tanshunyuan on GitHub (Jun 6, 2025). # Context I've decided to implement my own firestore checkpoint validation, and now I'm trying to run the test set by this [documentation](https://www.npmjs.com/package/@langchain/langgraph-checkpoint-validation). However, after following the instructions of the documentation I can't seem to get the test to work # Reproduction I've included a repo for reproduction, here is the [link](https://github.com/tanshunyuan/lg-custom-checkpoint). This also includes the custom firestore checkpointer i've implemented, packages and the system version. To get it running, ensure that you've: 1. Node `v22.4.1` 2. Run `npm install` to install the required dependencies 3. Execute either of the following command, both will throw different errors 3a. `npx @langchain/langgraph-checkpoint-validation ./test/firestore_initializer.ts` 3b. `validate-checkpointer ./test/firestore_initializer.ts` ## Error Details ### 3a. (Preset ts-jest/presets/default-esm not found) Running `npx @langchain/langgraph-checkpoint-validation ./test/firestore_initializer.ts`, threw the following error. ``` No tests found, exiting with code 1 Run with `--passWithNoTests` to exit with code 0 No files found in /lg-custom-validation/node_modules/@langchain/langgraph-checkpoint-validation/dist. Make sure Jest's configuration does not exclude this directory. To set up Jest, make sure a package.json file exists. Jest Documentation: https://jestjs.io/docs/configuration Pattern: - 0 matches ``` I'm not sure why it's throwing a no test found when there are actually test in the `node_modules/@langchain/langgraph-checkpoint-validation/dist` ![Image](https://github.com/user-attachments/assets/328c0380-e5ba-4faa-8b72-0c3abe313a10) ### 3b. (Preset ts-jest/presets/default-esm not found) Globally installing `checkpoint-validation` with the following command, doesn't work. ```bash npm install -g @langchain/langgraph-checkpoint-validation validate-checkpointer ./src/my_initializer.ts ``` Running `validate-checkpointer ./test/firestore_initializer.ts` throws the following error: ``` node:internal/modules/run_main:115 triggerUncaughtException( ^ [● Validation Error: Preset ts-jest/presets/default-esm not found. Configuration Documentation: https://jestjs.io/docs/configuration ] Node.js v22.4.1 ``` But my jest configuration does exist [here](https://github.com/tanshunyuan/lg-custom-checkpoint/blob/main/jest.config.js)
yindo closed this issue 2026-02-15 18:15:24 -05:00
Author
Owner

@dqbd commented on GitHub (Jul 4, 2025):

Hello! In process of updating the @langchain/langgraph-validate-checkpointer from Jest to Vitest, which should allow importing TS source file OOTB #1346

@dqbd commented on GitHub (Jul 4, 2025): Hello! In process of updating the `@langchain/langgraph-validate-checkpointer` from Jest to Vitest, which should allow importing TS source file OOTB #1346
Author
Owner

@dqbd commented on GitHub (Jul 7, 2025):

With @langchain/langgraph-validate-checkpointer@0.1.0 we've switched from Jest to Vitest, which should handle ESM and TS by default.

@dqbd commented on GitHub (Jul 7, 2025): With `@langchain/langgraph-validate-checkpointer@0.1.0` we've switched from Jest to Vitest, which should handle ESM and TS by default.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#274