mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
fix(test): enable live cache script gates
This commit is contained in:
@@ -1708,7 +1708,7 @@
|
||||
"test:install:e2e:openai": "OPENCLAW_E2E_MODELS=openai bash scripts/test-install-sh-e2e-docker.sh",
|
||||
"test:install:smoke": "bash scripts/test-install-sh-docker.sh",
|
||||
"test:live": "node scripts/test-live.mjs",
|
||||
"test:live:cache": "node --import tsx scripts/check-live-cache.ts",
|
||||
"test:live:cache": "node scripts/run-with-env.mjs OPENCLAW_LIVE_TEST=1 OPENCLAW_LIVE_CACHE_TEST=1 -- node --import tsx scripts/check-live-cache.ts",
|
||||
"test:live:codex-harness": "node scripts/test-live.mjs --codex-harness -- src/gateway/gateway-codex-harness.live.test.ts",
|
||||
"test:live:crestodian-rescue-channel": "node scripts/run-with-env.mjs OPENCLAW_LIVE_CRESTODIAN_RESCUE_CHANNEL=1 -- node scripts/test-live.mjs -- src/crestodian/rescue-channel.live.test.ts",
|
||||
"test:live:gateway-profiles": "node scripts/test-live.mjs -- src/gateway/gateway-models.profiles.live.test.ts",
|
||||
|
||||
@@ -118,6 +118,12 @@ describe("package scripts", () => {
|
||||
expect(directNodeEnvScripts).toEqual([]);
|
||||
});
|
||||
|
||||
it("enables live cache validation in the package script", () => {
|
||||
expect(readPackageJson().scripts["test:live:cache"]).toBe(
|
||||
"node scripts/run-with-env.mjs OPENCLAW_LIVE_TEST=1 OPENCLAW_LIVE_CACHE_TEST=1 -- node --import tsx scripts/check-live-cache.ts",
|
||||
);
|
||||
});
|
||||
|
||||
it("uses the shipped package launcher for npm start", () => {
|
||||
expect(readPackageJson().scripts.start).toBe("node openclaw.mjs");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user