Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/integration/security-scanner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,14 @@ describe("OpenClaw security scanner", () => {
// chunks ship — one minified with mangled exports and one with proper names —
// so match both prefixes, iterate all, and pick the one exporting
// scanDirectoryWithSummary; fall back to "first function export" for older builds.
// 2026.10.x also moved its dist chunks from `.js` to `.mjs`, so accept both.
const openclawDist = resolveOpenclawDist();
try {
const files = readdirSync(openclawDist);
const scannerFiles = files.filter(
(f) => (f.startsWith("skill-scanner") || f.startsWith("scanner-")) && f.endsWith(".js"),
(f) =>
(f.startsWith("skill-scanner") || f.startsWith("scanner-")) &&
(f.endsWith(".js") || f.endsWith(".mjs")),
);
if (scannerFiles.length === 0) {
scannerLoadError = `scanner chunk not found in ${openclawDist}`;
Expand Down
Loading