We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a860835 commit c75f86bCopy full SHA for c75f86b
packages/vertexai/test-utils/convert-mocks.ts
@@ -35,8 +35,11 @@ const mockDirs: Record<BackendName, string> = {
35
};
36
37
/**
38
- * Generates a file that exports maps from filenames to JSON mock responses (as strings)
+ * Generates a JS file that exports maps from filenames to JSON mock responses (as strings)
39
* for each backend.
40
+ *
41
+ * This allows tests that run in a browser to access the mock responses without having to
42
+ * read from local disk and requiring 'fs'.
43
*/
44
function generateMockLookupFile(): void {
45
console.log('Generating mock lookup file...');
0 commit comments