Skip to content

Commit a3f9021

Browse files
committed
fix(integration_tests): fix firestore tests
1 parent 5c85e84 commit a3f9021

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

integration_test_declarative/scripts/run-suite.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ for SUITE_NAME in "${SUITE_NAMES[@]}"; do
267267
done
268268

269269
if [ ${#TEST_FILES[@]} -gt 0 ]; then
270-
npm test -- "${TEST_FILES[@]}"
270+
TEST_RUN_ID="$TEST_RUN_ID" npm test -- "${TEST_FILES[@]}"
271271
else
272272
echo -e "${YELLOW} No test files found. Running all tests...${NC}"
273-
npm test
273+
TEST_RUN_ID="$TEST_RUN_ID" npm test
274274
fi
275275

276276
echo ""

integration_test_declarative/templates/functions/src/v1/firestore-tests.ts.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const {{name}}{{../testRunId}} = functions
1111
})
1212
.region(REGION)
1313
.firestore.document("{{document}}")
14-
.{{trigger}}(async ({{#if (eq trigger "onUpdate")}}change{{else if (eq trigger "onWrite")}}change{{else}}snapshot{{/if}}, context) => {
14+
.{{trigger}}(async ({{#if (eq trigger "onUpdate")}}_change{{else if (eq trigger "onWrite")}}_change{{else}}_snapshot{{/if}}, context) => {
1515
const testId = context.params.testId;
1616
await admin
1717
.firestore()

0 commit comments

Comments
 (0)