polyfill flat() for jest on Node 10.x
This commit is contained in:
parent
82e99c3fd7
commit
e5e81aa9c6
|
@ -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", () => {
|
||||
|
|
Loading…
Reference in New Issue