Skip to content

Commit 7a873ee

Browse files
authored
fix(firestore-vector-search): fix build step of publish (#606)
1 parent 9e11408 commit 7a873ee

File tree

6 files changed

+12
-161
lines changed

6 files changed

+12
-161
lines changed
Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +0,0 @@
1-
import {
2-
snapshot,
3-
mockDocumentSnapshotFactory,
4-
mockFirestoreUpdate,
5-
mockFirestoreTransaction,
6-
} from './mocks/firestore';
7-
import {
8-
testTranslations,
9-
mockTranslate,
10-
mockTranslateClassMethod,
11-
mockTranslateClass,
12-
mockTranslateModuleFactory,
13-
} from './mocks/translate';
14-
15-
global.config = () => require('../src/config').default;
16-
17-
global.snapshot = snapshot;
18-
19-
global.testTranslations = testTranslations;
20-
21-
global.mockDocumentSnapshotFactory = mockDocumentSnapshotFactory;
22-
23-
global.mockTranslate = mockTranslate;
24-
25-
global.mockTranslateClassMethod = mockTranslateClassMethod;
26-
27-
global.mockTranslateClass = mockTranslateClass;
28-
29-
global.mockTranslateModule = () =>
30-
jest.mock('@google-cloud/translate', mockTranslateModuleFactory);
31-
32-
global.mockFirestoreUpdate = mockFirestoreUpdate;
33-
34-
global.mockFirestoreTransaction = mockFirestoreTransaction;
35-
36-
global.clearMocks = () => {
37-
mockFirestoreUpdate.mockClear();
38-
mockTranslateClassMethod.mockClear();
39-
};

firestore-vector-search/functions/__tests__/mocks/firestore.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

firestore-vector-search/functions/__tests__/mocks/translate.ts

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)