Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions test/unit/focus-manifest-engine-barrel.test.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,31 @@
import { describe, expect, it } from "vitest";

import {
compileFocusManifestPolicy,
gateConfigToJson,
matchesManifestPath,
MAX_FOCUS_MANIFEST_BYTES,
parseFocusManifest,
parseFocusManifestContent,
reviewConfigToJson,
} from "../../packages/loopover-engine/src/focus-manifest";

describe("loopover-engine focus-manifest barrel exports (#2280)", () => {
it("re-exports the focus-manifest parse/compile API from the package barrel", async () => {
const barrel = await import("../../packages/loopover-engine/src/index");
expect(typeof barrel.parseFocusManifest).toBe("function");
expect(typeof barrel.parseFocusManifestContent).toBe("function");
expect(typeof barrel.compileFocusManifestPolicy).toBe("function");
expect(typeof barrel.matchesManifestPath).toBe("function");
expect(typeof barrel.isFocusManifestPublicSafe).toBe("function");
expect(barrel.MAX_FOCUS_MANIFEST_BYTES).toBeGreaterThan(0);
expect(typeof barrel.parseFocusManifest).toBe(typeof parseFocusManifest);
expect(typeof barrel.parseFocusManifestContent).toBe(typeof parseFocusManifestContent);
expect(typeof barrel.compileFocusManifestPolicy).toBe(typeof compileFocusManifestPolicy);
expect(typeof barrel.matchesManifestPath).toBe(typeof matchesManifestPath);
});
});

describe("focus-manifest engine branch coverage (#2280)", () => {
it("warns when settings.linkedIssueHardRules is not an object", () => {
const parsed = parseFocusManifest({ settings: { linkedIssueHardRules: "not-an-object" } });
Expand Down