You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
env passed to config/polly.js is development when tests are executed via ember exam. ember-exam allows to split tets in chunks and/or run them in parallel.
There's no error message but rather the behaviour is incorrect - polly doesn't get initialized. I added console.log('env :>> ', env); in the beginning of the file and it prints development. Adding EMBER_ENV seems to fix the problem, however it is not documented and intuitively shouldn't be needed at all when running tests.
Your determineEnv is very fragile and assumes the app is executed with predefined arguments. Why don't you integrate into Ember workflow to pull the exact environment from the app config?
The text was updated successfully, but these errors were encountered:
Description
env
passed toconfig/polly.js
isdevelopment
when tests are executed viaember exam
. ember-exam allows to split tets in chunks and/or run them in parallel.config/polly.js
:Error Message & Stack Trace
There's no error message but rather the behaviour is incorrect - polly doesn't get initialized. I added
console.log('env :>> ', env);
in the beginning of the file and it printsdevelopment
. AddingEMBER_ENV
seems to fix the problem, however it is not documented and intuitively shouldn't be needed at all when running tests.Dependencies
Your determineEnv is very fragile and assumes the app is executed with predefined arguments. Why don't you integrate into Ember workflow to pull the exact environment from the app config?
The text was updated successfully, but these errors were encountered: