Skip to content

Commit 6f5813f

Browse files
committed
Tests: cover Matrix runtime wrapper and idHint compatibility
1 parent ba9810e commit 6f5813f

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import path from "node:path";
2+
import { pathToFileURL } from "node:url";
3+
import { expect, it } from "vitest";
4+
5+
it("loads the plugin-entry runtime wrapper through native ESM import", async () => {
6+
const wrapperPath = path.join(
7+
process.cwd(),
8+
"extensions",
9+
"matrix",
10+
"src",
11+
"plugin-entry.runtime.js",
12+
);
13+
const wrapperUrl = pathToFileURL(wrapperPath);
14+
const mod = await import(wrapperUrl.href);
15+
16+
expect(mod).toMatchObject({
17+
ensureMatrixCryptoRuntime: expect.any(Function),
18+
handleVerifyRecoveryKey: expect.any(Function),
19+
handleVerificationBootstrap: expect.any(Function),
20+
handleVerificationStatus: expect.any(Function),
21+
});
22+
}, 240_000);

src/plugins/manifest-registry.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ describe("loadPluginManifestRegistry", () => {
638638
{ name: "provider-style", manifestId: "openai", idHint: "openai-provider" },
639639
{ name: "plugin-style", manifestId: "brave", idHint: "brave-plugin" },
640640
{ name: "sandbox-style", manifestId: "openshell", idHint: "openshell-sandbox" },
641+
{ name: "multi-entry-style", manifestId: "matrix", idHint: "matrix/index" },
641642
{
642643
name: "media-understanding-style",
643644
manifestId: "groq",

0 commit comments

Comments
 (0)