fix(openontology): resolve manifest directories on Windows (#116)

This commit is contained in:
RissRIce 2026-07-30 19:41:15 -06:00 committed by GitHub
parent 6f23dbdb0f
commit e5283455af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View file

@ -48,6 +48,13 @@ describe("init + validate", () => {
expect(pkg.files.map((f) => f.path)).toContain("data/claims.ndjson");
});
it("loads a package from an explicit manifest path", () => {
const { dir } = scaffold();
const pkg = loadOntologyPackage(join(dir, "openontology.yaml"));
expect(pkg.dir).toBe(dir);
expect(pkg.manifest.id).toBe("test-ecosystem");
});
it("builds a deterministic digest that survives a rebuild", () => {
const { pkg } = scaffold();
const first = buildOntologyPackage(pkg);