mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56:31 +00:00
Fix tests hanging on array.flatMap
Change-type: patch Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzothunder.ambrosi@gmail.com>
This commit is contained in:
parent
3e45691d0b
commit
eeab351636
@ -266,7 +266,6 @@ export function getListDriveImageCompatibilityStatuses(
|
|||||||
drives: DrivelistDrive[],
|
drives: DrivelistDrive[],
|
||||||
image: SourceMetadata,
|
image: SourceMetadata,
|
||||||
) {
|
) {
|
||||||
// @ts-ignore
|
|
||||||
return drives.flatMap((drive) => {
|
return drives.flatMap((drive) => {
|
||||||
return getDriveImageCompatibilityStatuses(drive, image);
|
return getDriveImageCompatibilityStatuses(drive, image);
|
||||||
});
|
});
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
|
"target": "es2019",
|
||||||
|
"moduleResolution": "node",
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"typeRoots": ["./node_modules/@types", "./typings"]
|
"typeRoots": ["./node_modules/@types", "./typings"]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user