2dc1efad24
- 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.
13 lines
460 B
TypeScript
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);
|
|
});
|
|
});
|