Path: redb-route/vscode-redb-route/src/test/catalog.test.ts Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/vscode-redb-route/src/test/catalog.test.ts ---- import { strict as assert } from "node:assert"; import { describe, it } from "node:test"; import * as fs from "node:fs"; import * as path from "node:path"; /** * The schema the OASIS catalog binds must be the one that knows the PACKAGE elements * (, , , ...) and the typed endpoint options - not the bare registry * schema. A document only gets a schema through this binding, so a catalog pointing at the * lean file made every package element red in the editor (owner finding 2026-09-17). */ describe("the OASIS catalog binding", () => { const media = path.join(__dirname, "..", "..", "media"); const catalog = fs.readFileSync(path.join(media, "catalog.xml"), "utf8"); const bound = (): string => { const match = / { assert.ok(fs.existsSync(path.join(media, bound())), `${bound()} must exist in media/`); }); it("binds the schema that knows the package contributions", () => { const schema = fs.readFileSync(path.join(media, bound()), "utf8"); for (const element of ["redb", "redbSave", "redbQuery", "cache"]) assert.ok(schema.includes(``), `the bound schema must declare <${element}>`); assert.ok(schema.includes(''), " must accept the redb bridge block"); }); });