Skip to content

Commit 70b0174

Browse files
authored
fix(core): update test snapshots (langchain-ai#9610)
1 parent 268e6d6 commit 70b0174

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

libs/langchain-core/src/tracers/tests/__snapshots__/langchain_tracer.test.ts.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,15 @@ exports[`LangChainTracer payload snapshots for run create and update 3`] = `
109109
"inputs": {
110110
"input": "test input",
111111
},
112+
"name": Any<String>,
112113
"outputs": {
113114
"output": "processed: test input",
114115
},
115116
"parent_run_id": Any<String>,
116117
"reference_example_id": undefined,
118+
"run_type": "chain",
117119
"session_name": Any<String>,
120+
"start_time": Any<String>,
118121
"tags": [],
119122
"trace_id": Any<String>,
120123
}
@@ -141,12 +144,15 @@ exports[`LangChainTracer payload snapshots for run create and update 4`] = `
141144
"inputs": {
142145
"input": "test input",
143146
},
147+
"name": Any<String>,
144148
"outputs": {
145149
"output": "parent: processed: test input",
146150
},
147151
"parent_run_id": undefined,
148152
"reference_example_id": undefined,
153+
"run_type": "chain",
149154
"session_name": Any<String>,
155+
"start_time": Any<String>,
150156
"tags": [],
151157
"trace_id": Any<String>,
152158
}

libs/langchain-core/src/tracers/tests/langchain_tracer.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,25 +73,29 @@ test("LangChainTracer payload snapshots for run create and update", async () =>
7373
expect(updatePayloads[0]).toMatchSnapshot({
7474
session_name: expect.any(String),
7575
dotted_order: expect.any(String),
76+
start_time: expect.any(String),
7677
end_time: expect.any(Number),
7778
events: expect.arrayContaining([
7879
expect.objectContaining({
7980
time: expect.any(String),
8081
}),
8182
]),
83+
name: expect.any(String),
8284
trace_id: expect.any(String),
8385
parent_run_id: expect.any(String),
8486
});
8587

8688
expect(updatePayloads[1]).toMatchSnapshot({
8789
session_name: expect.any(String),
8890
dotted_order: expect.any(String),
91+
start_time: expect.any(String),
8992
end_time: expect.any(Number),
9093
events: expect.arrayContaining([
9194
expect.objectContaining({
9295
time: expect.any(String),
9396
}),
9497
]),
98+
name: expect.any(String),
9599
trace_id: expect.any(String),
96100
});
97101
});

0 commit comments

Comments
 (0)