diff --git a/integration/scripts/browser.js b/integration/scripts/browser.js index 4b7a2ef4a8..9cd23e4ee0 100644 --- a/integration/scripts/browser.js +++ b/integration/scripts/browser.js @@ -117,6 +117,7 @@ async function main() { "/array-args-with-default-values.js", "/forbid-in-is-correct.js", "/code-simplification-neql-define.js", + "/spread_with_key.tsx", ]; tests.reverse(); diff --git a/integration/snippets/spread_with_key.tsx b/integration/snippets/spread_with_key.tsx new file mode 100644 index 0000000000..9c26ea5ba3 --- /dev/null +++ b/integration/snippets/spread_with_key.tsx @@ -0,0 +1,20 @@ +import React from "react"; + +export function SpreadWithTheKey({ className }: Props) { + const rest = {}; + return ( +