2d2e386b94
Merged via squash. Prepared head SHA: 6f5813ffff1ab689f5c98697d44b1893326bde19 Co-authored-by: keithce <2086282+keithce@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
23 lines
681 B
TypeScript
23 lines
681 B
TypeScript
import path from "node:path";
|
|
import { pathToFileURL } from "node:url";
|
|
import { expect, it } from "vitest";
|
|
|
|
it("loads the plugin-entry runtime wrapper through native ESM import", async () => {
|
|
const wrapperPath = path.join(
|
|
process.cwd(),
|
|
"extensions",
|
|
"matrix",
|
|
"src",
|
|
"plugin-entry.runtime.js",
|
|
);
|
|
const wrapperUrl = pathToFileURL(wrapperPath);
|
|
const mod = await import(wrapperUrl.href);
|
|
|
|
expect(mod).toMatchObject({
|
|
ensureMatrixCryptoRuntime: expect.any(Function),
|
|
handleVerifyRecoveryKey: expect.any(Function),
|
|
handleVerificationBootstrap: expect.any(Function),
|
|
handleVerificationStatus: expect.any(Function),
|
|
});
|
|
}, 240_000);
|