Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 852 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 852 Bytes

Testing

To run individual tests, run npm run local to start the firebase emulator. Otherwise, npm test will start the emulator then run the tests.

While tests are running, http://localhost:9000/.json?ns=testDb will show the state of the local database.

Dependencies

Other than npm dependencies, the local version of firebase installed with @firebase/testing also requires that java is installed locally.

To test in Cloud Build, the docker image needs both npm and java installed. docker/Dockerfile specifies how to create such an image, and you can use Cloud Build to publish the image by running

gcloud builds submit --config cloudbuild.yaml .
  • TODO Container Registry will be phased out, starting May 15, 2024. Please review the options below for how to upgrade your projects to Artifact Registry.