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
PR #22 introduced a setSettingsJsonForTesting method in settings.ts in order to allow for testing of custom, non-production settings. However, exposing a test-only method on Settings like this isn't the best approach, as it could get misused.
Get rid of setSettingsJsonForTesting and implement a DI-like solution so that our test environments can inject a different object than the one in the settings.json production file, as desired.
The text was updated successfully, but these errors were encountered:
PR #22 introduced a
setSettingsJsonForTesting
method insettings.ts
in order to allow for testing of custom, non-production settings. However, exposing a test-only method onSettings
like this isn't the best approach, as it could get misused.Get rid of
setSettingsJsonForTesting
and implement a DI-like solution so that our test environments can inject a different object than the one in thesettings.json
production file, as desired.The text was updated successfully, but these errors were encountered: