From 0d9be09f6642b8dcdfc81a172e55d4304d17e603 Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Thu, 2 May 2024 14:10:00 -0400 Subject: [PATCH] Handle implementations list not being an Array. --- implementations/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/implementations/index.js b/implementations/index.js index 6871487..646465f 100644 --- a/implementations/index.js +++ b/implementations/index.js @@ -37,8 +37,11 @@ export const localSettings = (Object.keys(localConfig).length > 0) ? {enableInteropTests: true, testAllImplementations: true}; // get localConfig and look for an implementations property -const local = localConfig?.implementations || []; - +let local = localConfig?.implementations || []; +// it's an easy typo to set `implementations` to an object...instead of an array +if(!Array.isArray(local)) { + local = [local]; +} // concat all the implementation manifests together const all = remote.concat(local);