From eeab35163658c982f9ec35f37b40649d5f99fad6 Mon Sep 17 00:00:00 2001 From: Lorenzo Alberto Maria Ambrosi Date: Wed, 2 Sep 2020 19:00:07 +0200 Subject: [PATCH] Fix tests hanging on array.flatMap Change-type: patch Signed-off-by: Lorenzo Alberto Maria Ambrosi --- lib/shared/drive-constraints.ts | 1 - tsconfig.json | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/shared/drive-constraints.ts b/lib/shared/drive-constraints.ts index 0e92a615..c75bd719 100644 --- a/lib/shared/drive-constraints.ts +++ b/lib/shared/drive-constraints.ts @@ -266,7 +266,6 @@ export function getListDriveImageCompatibilityStatuses( drives: DrivelistDrive[], image: SourceMetadata, ) { - // @ts-ignore return drives.flatMap((drive) => { return getDriveImageCompatibilityStatuses(drive, image); }); diff --git a/tsconfig.json b/tsconfig.json index 9cdd39ef..aefede61 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,8 @@ "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, + "target": "es2019", + "moduleResolution": "node", "jsx": "react", "typeRoots": ["./node_modules/@types", "./typings"] }