Skip to content

Commit

Permalink
fix(firestore-vector-search): fix build step of publish (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
cabljac authored Dec 10, 2024
1 parent 9e11408 commit 7a873ee
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 161 deletions.
39 changes: 0 additions & 39 deletions firestore-vector-search/functions/__tests__/jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,39 +0,0 @@
import {
snapshot,
mockDocumentSnapshotFactory,
mockFirestoreUpdate,
mockFirestoreTransaction,
} from './mocks/firestore';
import {
testTranslations,
mockTranslate,
mockTranslateClassMethod,
mockTranslateClass,
mockTranslateModuleFactory,
} from './mocks/translate';

global.config = () => require('../src/config').default;

global.snapshot = snapshot;

global.testTranslations = testTranslations;

global.mockDocumentSnapshotFactory = mockDocumentSnapshotFactory;

global.mockTranslate = mockTranslate;

global.mockTranslateClassMethod = mockTranslateClassMethod;

global.mockTranslateClass = mockTranslateClass;

global.mockTranslateModule = () =>
jest.mock('@google-cloud/translate', mockTranslateModuleFactory);

global.mockFirestoreUpdate = mockFirestoreUpdate;

global.mockFirestoreTransaction = mockFirestoreTransaction;

global.clearMocks = () => {
mockFirestoreUpdate.mockClear();
mockTranslateClassMethod.mockClear();
};
36 changes: 0 additions & 36 deletions firestore-vector-search/functions/__tests__/mocks/firestore.ts

This file was deleted.

32 changes: 0 additions & 32 deletions firestore-vector-search/functions/__tests__/mocks/translate.ts

This file was deleted.

Loading

0 comments on commit 7a873ee

Please sign in to comment.