Skip to content

Commit

Permalink
Overwrite default with localConfig.settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Apr 4, 2024
1 parent 83d797a commit 238d7ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions implementations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const getLocalManifest = fileName => {

const localConfig = getLocalManifest('localConfig.cjs');
export const localSettings = (Object.keys(localConfig).length > 0) ?
// we have a localConfig object, so merge in local defaults
{...localConfig?.settings,
...{enableInteropTests: false, testAllImplementations: false}} :
// if there is a localConfig.settings overwrite local defaults
{...{enableInteropTests: false, testAllImplementations: false},
...localConfig?.settings} :
// otherwise, return the global defaults
// FIXME: ...consider renaming `localSettings` as it can hold global ones...
{enableInteropTests: true, testAllImplementations: true};
Expand Down

0 comments on commit 238d7ba

Please sign in to comment.