Skip to content

Commit faf4df6

Browse files
committed
dont throw if mock response file isn't found
1 parent 708892a commit faf4df6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/vertexai/test-utils/mock-response.ts

-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ export function getMockResponseStreaming(
4949
filename: string,
5050
chunkLength: number = 20
5151
): Partial<Response> {
52-
if (!(filename in mocksLookup)) {
53-
throw Error(`Mock response file not found: '${filename}'`);
54-
}
5552
const fullText = mocksLookup[filename];
5653

5754
return {

0 commit comments

Comments
 (0)