(code: string)
| 4 | |
| 5 | // Helper function to run mutation and get result |
| 6 | function runMutation(code: string) { |
| 7 | const input = createPayload({ code, params: defaultParams, fileKey: "test" }); |
| 8 | const mutated = jsxRootFlagMutation(input); |
| 9 | if (!mutated) throw new Error("Mutation returned null"); |
| 10 | return createOutput(mutated).code; |
| 11 | } |
| 12 | |
| 13 | describe("jsxRootFlagMutation", () => { |
| 14 | it("should add data-jsx-root flag to a single root JSX element", () => { |
no test coverage detected