зеркало из https://github.com/mozilla/fxa.git
fix(tests): fix issues w/ running auth-server tests locally
Because: - auth-server tests were not passing in local env with default/no configs This commit: - add or pass env vars to get some tests running
This commit is contained in:
Родитель
82f1382b50
Коммит
6938ace7ee
|
@ -8,6 +8,7 @@ rm -rf .nyc_output
|
|||
|
||||
if [ -z "$NODE_ENV" ]; then export NODE_ENV=dev; fi;
|
||||
if [ -z "$CORS_ORIGIN" ]; then export CORS_ORIGIN="http://foo,http://bar"; fi;
|
||||
if [ -z "$FIRESTORE_EMULATOR_HOST" ]; then export FIRESTORE_EMULATOR_HOST="localhost:9090"; fi;
|
||||
|
||||
|
||||
DEFAULT_ARGS="--require esbuild-register --recursive --timeout 5000 --exit"
|
||||
|
|
|
@ -69,6 +69,7 @@ const DB = require('../../lib/db')(config, log, Token, UnblockCode);
|
|||
const execOptions = {
|
||||
cwd,
|
||||
env: {
|
||||
...process.env,
|
||||
NODE_ENV: 'dev',
|
||||
LOG_LEVEL: 'error',
|
||||
AUTH_FIRESTORE_EMULATOR_HOST: 'localhost:9090',
|
||||
|
|
|
@ -16,6 +16,7 @@ const cwd = path.resolve(__dirname, ROOT_DIR);
|
|||
const execOptions = {
|
||||
cwd,
|
||||
env: {
|
||||
PATH: process.env.PATH || '',
|
||||
NODE_ENV: 'dev',
|
||||
LOG_LEVEL: 'error',
|
||||
AUTH_FIRESTORE_EMULATOR_HOST: 'localhost:9090',
|
||||
|
|
|
@ -61,6 +61,7 @@ const DB = require('../../lib/db')(config, log, Token, UnblockCode);
|
|||
const execOptions = {
|
||||
cwd,
|
||||
env: {
|
||||
...process.env,
|
||||
NODE_ENV: 'dev',
|
||||
LOG_LEVEL: 'error',
|
||||
AUTH_FIRESTORE_EMULATOR_HOST: 'localhost:9090',
|
||||
|
|
|
@ -16,6 +16,7 @@ const cwd = path.resolve(__dirname, ROOT_DIR);
|
|||
const execOptions = {
|
||||
cwd,
|
||||
env: {
|
||||
...process.env,
|
||||
NODE_ENV: 'dev',
|
||||
LOG_LEVEL: 'error',
|
||||
AUTH_FIRESTORE_EMULATOR_HOST: 'localhost:9090',
|
||||
|
|
|
@ -18,6 +18,7 @@ const cwd = path.resolve(__dirname, ROOT_DIR);
|
|||
const execOptions = {
|
||||
cwd,
|
||||
env: {
|
||||
...process.env,
|
||||
NODE_ENV: 'dev',
|
||||
LOG_LEVEL: 'error',
|
||||
AUTH_FIRESTORE_EMULATOR_HOST: 'localhost:9090',
|
||||
|
|
Загрузка…
Ссылка в новой задаче