mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-20 13:41:30 +00:00
fix(test): restore bundled loader coverage
This commit is contained in:
@@ -10,6 +10,7 @@ const ALLOWED_EXTENSION_PUBLIC_SURFACE_BASENAMES = new Set(
|
||||
);
|
||||
|
||||
const allowedNonExtensionTests = new Set<string>([
|
||||
"src/agents/pi-embedded-runner-extraparams-moonshot.test.ts",
|
||||
"src/agents/pi-embedded-runner-extraparams.test.ts",
|
||||
"src/channels/plugins/contracts/dm-policy.contract.test.ts",
|
||||
"src/channels/plugins/contracts/group-policy.contract.test.ts",
|
||||
@@ -20,6 +21,17 @@ const allowedNonExtensionTests = new Set<string>([
|
||||
"src/plugins/interactive.test.ts",
|
||||
"src/plugins/contracts/discovery.contract.test.ts",
|
||||
"src/plugin-sdk/telegram-command-config.test.ts",
|
||||
"src/secrets/runtime-channel-inactive-variants.test.ts",
|
||||
"src/secrets/runtime-discord-surface.test.ts",
|
||||
"src/secrets/runtime-inactive-telegram-surfaces.test.ts",
|
||||
"src/secrets/runtime-legacy-x-search.test.ts",
|
||||
"src/secrets/runtime-matrix-shadowing.test.ts",
|
||||
"src/secrets/runtime-matrix-top-level.test.ts",
|
||||
"src/secrets/runtime-nextcloud-talk-file-precedence.test.ts",
|
||||
"src/secrets/runtime-telegram-token-inheritance.test.ts",
|
||||
"src/secrets/runtime-zalo-token-activity.test.ts",
|
||||
"src/security/audit-channel-slack-command-findings.test.ts",
|
||||
"src/security/audit-feishu-doc-risk.test.ts",
|
||||
]);
|
||||
|
||||
function walk(dir: string, entries: string[] = []): string[] {
|
||||
|
||||
@@ -77,13 +77,26 @@ describe("local-heavy-check-runtime", () => {
|
||||
it("serializes local oxlint runs onto one thread on constrained hosts", () => {
|
||||
const { args } = applyLocalOxlintPolicy([], makeEnv(), CONSTRAINED_HOST);
|
||||
|
||||
expect(args).toEqual(["--type-aware", "--tsconfig", "tsconfig.oxlint.json", "--threads=1"]);
|
||||
expect(args).toEqual([
|
||||
"--type-aware",
|
||||
"--tsconfig",
|
||||
"tsconfig.oxlint.json",
|
||||
"--report-unused-disable-directives-severity",
|
||||
"error",
|
||||
"--threads=1",
|
||||
]);
|
||||
});
|
||||
|
||||
it("keeps local oxlint parallel on roomy hosts in auto mode", () => {
|
||||
const { args } = applyLocalOxlintPolicy([], makeEnv(), ROOMY_HOST);
|
||||
|
||||
expect(args).toEqual(["--type-aware", "--tsconfig", "tsconfig.oxlint.json"]);
|
||||
expect(args).toEqual([
|
||||
"--type-aware",
|
||||
"--tsconfig",
|
||||
"tsconfig.oxlint.json",
|
||||
"--report-unused-disable-directives-severity",
|
||||
"error",
|
||||
]);
|
||||
});
|
||||
|
||||
it("reclaims stale local heavy-check locks from dead pids", () => {
|
||||
|
||||
Reference in New Issue
Block a user