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

Function normalizeCode

packages/compiler/src/jsx-scope-inject.spec.ts:17–23  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

15
16// Helper function to normalize code for comparison
17function normalizeCode(code: string) {
18 const ast = parser.parse(code, {
19 sourceType: "module",
20 plugins: ["jsx", "typescript"],
21 });
22 return generate(ast).code;
23}
24
25describe("lingoJsxScopeInjectMutation", () => {
26 describe("skip", () => {

Callers 1

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected