Skip to content

Put tests in a codebase #1148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions integration_test/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"functions": {
"source": "functions",
"codebase": "integration-tests"
}
}
4 changes: 2 additions & 2 deletions integration_test/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ function delete_all_functions {
# Try to delete, if there are errors it is because the project is already empty,
# in that case do nothing.
if [[ "${TOKEN}" == "" ]]; then
firebase functions:delete integrationTests v1 v2 --force --project=$PROJECT_ID || : &
firebase functions:delete integration-tests --force --project=$PROJECT_ID || : &
else
firebase functions:delete integrationTests v1 v2 --force --project=$PROJECT_ID --token=$TOKEN || : &
firebase functions:delete integration-tests --force --project=$PROJECT_ID --token=$TOKEN || : &
fi
wait
announce "Project emptied."
Expand Down
4 changes: 2 additions & 2 deletions src/v2/providers/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export const updatedEventType = 'google.firebase.database.ref.v1.updated';
/** @internal */
export const deletedEventType = 'google.firebase.database.ref.v1.deleted';

/** @internal */
/** @hidden */
export interface RawRTDBCloudEventData {
['@type']: 'type.googleapis.com/google.events.firebase.database.v1.ReferenceEventData';
data: any;
delta: any;
}

/** @internal */
/** @hidden */
export interface RawRTDBCloudEvent extends CloudEvent<RawRTDBCloudEventData> {
firebasedatabasehost: string;
instance: string;
Expand Down