Debian Codegraph @

packages/babel-plugin-transform-spread/test/fixtures/spread/single/exec.js

raw
1 // test that toConsumableArray clones the array.
2 const arr = [];
3 const foo = () => arr;
4
5 const x = [...foo()];
6
7 expect(x).not.toBe(arr);