From e5e81aa9c6ca959420ed8eb877fb517c60e2aa60 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Thu, 27 Aug 2020 10:10:35 +0100 Subject: [PATCH] polyfill flat() for jest on Node 10.x --- packages/builder/tests/fetchBindableProperties.spec.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/builder/tests/fetchBindableProperties.spec.js b/packages/builder/tests/fetchBindableProperties.spec.js index c8372b0255..59b68a1a6f 100644 --- a/packages/builder/tests/fetchBindableProperties.spec.js +++ b/packages/builder/tests/fetchBindableProperties.spec.js @@ -1,4 +1,11 @@ import fetchBindableProperties from "../src/builderStore/fetchBindableProperties" +import { flat } from "lodash" + +// supports running jest on Node 10.x +if (!Array.flat) { + Array.flat = flat +} + describe("fetch bindable properties", () => { it("should return bindable properties from screen components", () => {