Skip to content

Conversation

@joehan
Copy link
Contributor

@joehan joehan commented Sep 14, 2020

Description

Updates integration tests to use the region specified in the environment variable FIREBASE_FUNCTIONS_TEST_REGION. If not set, defaults to 'us-central1'.

Code sample

export FIREBASE_FUNCTIONS_TEST_REGION=europe-west1
./integration-test/run_tests.sh

export const createUserTests: any = functions.auth.user().onCreate((u, c) => {
const testId: string = u.displayName;
console.log(`testId is ${testId}`);
const REGION = process.env.FIREBASE_FUNCTIONS_TEST_REGION || 'us-central1';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (and the .region(REGION) calls) are the only real changes in this file - the formatter just happened to move everything around slightly.

@joehan joehan merged commit 7e2c0ec into master Sep 14, 2020
@joehan joehan deleted the jh-test-region branch September 14, 2020 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants