mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:50:43 +00:00
test: accept externalized discord voice fallback
(cherry picked from commit 13424b9b3e)
This commit is contained in:
@@ -59,6 +59,9 @@ const OPTIONAL_OR_EXTERNALIZED_RUNTIME_IMPORTS = new Set([
|
||||
"@matrix-org/matrix-sdk-crypto-nodejs",
|
||||
"link-preview-js",
|
||||
"matrix-js-sdk",
|
||||
// Discord voice decoder fallback. The root chunk catches missing decoders and the owning
|
||||
// Discord plugin remains externalized from the root package.
|
||||
"opusscript",
|
||||
]);
|
||||
const require = createRequire(import.meta.url);
|
||||
const acorn = require("acorn") as typeof import("acorn");
|
||||
|
||||
@@ -240,6 +240,11 @@ describe("collectInstalledRootDependencyManifestErrors", () => {
|
||||
'await import("@lancedb/lancedb");\n',
|
||||
"utf8",
|
||||
);
|
||||
writeFileSync(
|
||||
join(packageRoot, "dist", "discord-voice-runtime.js"),
|
||||
'const OpusScript = require("opusscript");\nexport { OpusScript };\n',
|
||||
"utf8",
|
||||
);
|
||||
|
||||
expect(collectInstalledRootDependencyManifestErrors(packageRoot)).toEqual([]);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user