[go: nahoru, domu]

Skip to content

Commit

Permalink
Put tests in a codebase (#1148)
Browse files Browse the repository at this point in the history
* Update v2 rtdb to expose RawRTDBEvent and RawRTDBCloudEventData (#1137)

* Update v2 rtdb to expose RawRTDBEvent and RawRTDBCloudEventData

This commit updates the v2 database provider to also expose the
RawRTDB Events.

This will be used in test-sdk when mocking returned DatabaseEvents.

* Adding @hidden instead of @internal

* Put tests in a codebase

* Revert changes to package-lock.json

* Format fix

Co-authored-by: Tyler Stark <theirondeveloper@gmail.com>
Co-authored-by: Daniel Young Lee <taeold@gmail.com>
  • Loading branch information
3 people committed Jun 26, 2022
1 parent 0b47d40 commit e844387
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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

0 comments on commit e844387

Please sign in to comment.