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

Function parseJSX

packages/compiler/src/utils/jsx-functions.spec.ts:7–12  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

5import { describe, expect, it } from "vitest";
6
7function parseJSX(code: string) {
8 return parse(code, {
9 plugins: ["jsx"],
10 sourceType: "module",
11 });
12}
13
14describe("getJsxFunctions", () => {
15 it("extracts simple function calls", () => {

Callers 1

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected