Files
oh-my-pi/packages/react-edit-benchmark/test/formatter.test.ts
T
can1357 2dc1efad24 feat(coding-agent): exported utility functions and reorganized package structure for better module access
- Exported renderPromptTemplate function from config/prompt-templates module for programmatic prompt template rendering.
- Exported computeLineHash function from patch/hashline module for external patch utility access.
- Added ./cli export path in package.json for direct CLI module access.
2026-02-12 09:40:44 +01:00

13 lines
460 B
TypeScript

import { describe, expect, it } from "bun:test";
import { formatContent } from "../src/formatter";
describe("formatContent", () => {
it("pins .js files to the flow parser (no fallback to babel-ts)", async () => {
const tsOnlySyntaxInJs = "namespace Foo { export const value = 1; }\n";
const result = await formatContent("fixture.js", tsOnlySyntaxInJs);
expect(result.didFormat).toBe(false);
expect(result.formatted).toBe(tsOnlySyntaxInJs);
});
});