File tree 3 files changed +16
-8
lines changed
spec/fixtures/extsdk/translate
3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,17 @@ set -ex # Immediately exit on failure
5
5
npm run build
6
6
npm link
7
7
8
- # Link local SDK to all test sources.
8
+ # Link the extensions SDKs for the testing environment.
9
+ (cd scripts/bin-test/extsdks/local && npm link)
10
+ (cd scripts/bin-test/extsdks/translate && npm link)
11
+ (cd scripts/bin-test/extsdks/translate && npm link firebase-functions)
12
+
13
+ # Link SDKs to all test sources.
9
14
for f in scripts/bin-test/sources/* ; do
10
15
if [ -d " $f " ]; then
11
16
(cd " $f " && npm link firebase-functions)
17
+ (cd " $f " && npm link @firebase-extensions/firebase-firestore-translate-text-sdk)
18
+ (cd " $f " && npm link @firebase-extensions/local-backfill-sdk)
12
19
fi
13
20
done
14
21
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const BASE_EXTENSIONS = {
44
44
DO_BACKFILL : "False" ,
45
45
LOCATION : "us-central1" ,
46
46
} ,
47
- localPath : "./functions/generated/extensions/local/backfill0 .0.2/src" ,
47
+ localPath : "./functions/generated/extensions/local/backfill/0 .0.2/src" ,
48
48
events : [ ] ,
49
49
} ,
50
50
} ;
@@ -306,10 +306,12 @@ describe("functions.yaml", function () {
306
306
} ,
307
307
} ,
308
308
} ,
309
- requiredAPIs : [ {
310
- api : "eventarcpublishing.googleapis.com" ,
311
- reason : "Needed for custom event functions" ,
312
- } , ] ,
309
+ requiredAPIs : [
310
+ {
311
+ api : "eventarcpublishing.googleapis.com" ,
312
+ reason : "Needed for custom event functions" ,
313
+ } ,
314
+ ] ,
313
315
specVersion : "v1alpha1" ,
314
316
extensions : BASE_EXTENSIONS ,
315
317
} ,
Original file line number Diff line number Diff line change @@ -119,5 +119,4 @@ export declare class FirestoreTranslateText {
119
119
* Occurs when the function is settled. Provides no customized data other than the context.
120
120
*/
121
121
onCompletion < T = unknown > ( callback : EventCallback < T > , options ?: SimpleEventarcTriggerOptions ) : import ( "firebase-functions/v2" ) . CloudFunction < CloudEvent < T > > ;
122
- }
123
- //# sourceMappingURL=index.d.ts.map
122
+ }
You can’t perform that action at this time.
0 commit comments