MCPcopy
hub / github.com/lingodotdev/lingo.dev / runMutation

Function runMutation

packages/compiler/src/jsx-attribute.spec.ts:5–10  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

3import { createPayload, createOutput, defaultParams } from "./_base";
4
5function runMutation(code: string) {
6 const input = createPayload({ code, params: defaultParams, fileKey: "test" });
7 const mutated = jsxAttributeMutation(input);
8 if (!mutated) return code;
9 return createOutput(mutated).code;
10}
11
12describe("jsxAttributeMutation", () => {
13 it("should replace html element with localizable attributes with LingoAttributeComponent", () => {

Callers

nothing calls this directly

Calls 2

createPayloadFunction · 0.90
createOutputFunction · 0.90

Tested by

no test coverage detected