mirror of
https://github.com/morluto/rea.git
synced 2026-12-01 19:09:21 +00:00
test(setup): declare ownership in Hermes CLI fixtures (#15277)
Give Hermes YAML preservation and policy fixtures a launcher with explicit REA ownership. Cover setup on CI runners without an installed bare rea command on PATH. Follow-up to #15046. Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing) Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
1 parent
a8fa92107c
commit
ea2db355a5
1 file changed
+5
-3
@@ -14,6 +14,7 @@ import { userInfo } from "node:os";
|
||||
import { parse } from "yaml";
|
||||
import { afterAll, beforeAll, beforeEach, expect } from "vitest";
|
||||
|
||||
import { PRODUCT_IDENTITY } from "../../../src/identity.js";
|
||||
import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js";
|
||||
import { cliTest } from "../../support/cli/cliFixture.js";
|
||||
import {
|
||||
@@ -21,6 +22,7 @@ import {
|
||||
removeTestWorkspace,
|
||||
} from "../../support/workspace/workspaceFixture.js";
|
||||
|
||||
const ownedPackageArgsLine = ` args: [-y, ${PRODUCT_IDENTITY.packageName}, mcp]`;
|
||||
let sharedHome = "";
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -68,7 +70,7 @@ for (const [version, keyStyle] of [
|
||||
"timestamp: 2026-10-14T00:00:00.123456+08:00\n";
|
||||
const original =
|
||||
settings +
|
||||
"mcp_servers:\n rea:\n command: rea\n args: [mcp]\n env:\n" +
|
||||
`mcp_servers:\n rea:\n command: npx\n${ownedPackageArgsLine}\n env:\n` +
|
||||
Object.entries(environment)
|
||||
.map(
|
||||
([key, value]) =>
|
||||
@@ -141,8 +143,8 @@ cliTest(
|
||||
"# Caller configuration",
|
||||
"mcp_servers:",
|
||||
" rea: # Registration explanation",
|
||||
" command: rea # Launcher explanation",
|
||||
" args: [mcp]",
|
||||
" command: npx # Launcher explanation",
|
||||
ownedPackageArgsLine,
|
||||
" env:",
|
||||
" CALLER_SETTING: keep exactly",
|
||||
" # Curated for this client.",
|
||||
|
||||
Reference in new issue
Block a user