test: allow readonly bundle manifest fixtures · openclaw/openclaw@dba631c
steipete
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,6 +15,16 @@ import {
|
15 | 15 | mkdirSafeDir, |
16 | 16 | } from "./test-helpers/fs-fixtures.js"; |
17 | 17 | |
| 18 | +type ExpectedBundlePluginManifest = Omit< |
| 19 | +BundlePluginManifest, |
| 20 | +"capabilities" | "hooks" | "settingsFiles" | "skills" |
| 21 | +> & { |
| 22 | +capabilities: readonly string[]; |
| 23 | +hooks: readonly string[]; |
| 24 | +settingsFiles?: readonly string[]; |
| 25 | +skills: readonly string[]; |
| 26 | +}; |
| 27 | + |
18 | 28 | const tempDirs: string[] = []; |
19 | 29 | |
20 | 30 | function makeTempDir() { |
@@ -235,7 +245,7 @@ describe("bundle manifest parsing", () => {
|
235 | 245 | name: "Claude Sample", |
236 | 246 | description: "Claude fixture", |
237 | 247 | version: undefined, |
238 | | -bundleFormat: "claude", |
| 248 | +bundleFormat: "claude" as const, |
239 | 249 | skills: ["skill-packs/starter", "commands-pack", "agents-pack", "styles"], |
240 | 250 | settingsFiles: ["settings.json"], |
241 | 251 | hooks: ["hooks/hooks.json", "hooks-pack"], |
@@ -299,7 +309,7 @@ describe("bundle manifest parsing", () => {
|
299 | 309 | name: undefined, |
300 | 310 | description: undefined, |
301 | 311 | version: undefined, |
302 | | -bundleFormat: "claude", |
| 312 | +bundleFormat: "claude" as const, |
303 | 313 | skills: ["skills", "commands"], |
304 | 314 | settingsFiles: ["settings.json"], |
305 | 315 | hooks: [], |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。