fix(setup): describe the inspected OpenCode registration dialect
The approval plan uses the dialect configuration inspection parsed, so a native OpenCode server table is not described as rewriting enabled.
This commit is contained in:
committed by
xeropresence
parent
fb3fa1dc5f
commit
4eb3b5335a
@@ -50,6 +50,7 @@ describe.each([
|
||||
expect(await inspectClientConfiguration(client, {}, command)).toEqual({
|
||||
status: "update",
|
||||
backupPath: `${client.configPath}.rea.backup`,
|
||||
dialect: client.format,
|
||||
});
|
||||
expect(await clientConfigurationAligned(client, {}, command)).toBe(false);
|
||||
expect(await configureClientConfiguration(client, {}, command)).toEqual({
|
||||
@@ -73,6 +74,7 @@ describe.each([
|
||||
expect(await clientConfigurationAligned(client, {}, command)).toBe(true);
|
||||
expect(await inspectClientConfiguration(client, {}, command)).toEqual({
|
||||
status: "already_current",
|
||||
dialect: client.format,
|
||||
});
|
||||
expect(
|
||||
await readClientRegistrationStatuses(home, currentCommandPath, {
|
||||
@@ -174,6 +176,7 @@ it.each(["", "\n \n", "\uFEFF"])(
|
||||
expect(await inspectClientConfiguration(client, {}, command)).toEqual({
|
||||
status: "update",
|
||||
backupPath: `${client.configPath}.rea.backup`,
|
||||
dialect: "json",
|
||||
});
|
||||
expect(await configureClientConfiguration(client, {}, command)).toEqual({
|
||||
status: "configured",
|
||||
@@ -184,6 +187,7 @@ it.each(["", "\n \n", "\uFEFF"])(
|
||||
});
|
||||
expect(await inspectClientConfiguration(client, {}, command)).toEqual({
|
||||
status: "already_current",
|
||||
dialect: "json",
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
@@ -68,7 +68,7 @@ it.each([
|
||||
);
|
||||
expect(
|
||||
await inspectClientConfiguration(client, providers, command),
|
||||
).toEqual({ status: "already_current" });
|
||||
).toEqual({ status: "already_current", dialect: format });
|
||||
expect(
|
||||
await configureClientConfiguration(client, providers, command),
|
||||
).toEqual({ status: "unchanged" });
|
||||
|
||||
@@ -102,6 +102,7 @@ it.each([
|
||||
expect(await clientConfigurationAligned(client, {}, command)).toBe(true);
|
||||
expect(await inspectClientConfiguration(client, {}, command)).toEqual({
|
||||
status: "already_current",
|
||||
dialect,
|
||||
});
|
||||
expect(await configureClientConfiguration(client, {}, command)).toEqual({
|
||||
status: "unchanged",
|
||||
|
||||
@@ -281,7 +281,7 @@ describe("Pi strict JSON parsing", () => {
|
||||
});
|
||||
expect(
|
||||
await inspectClientConfiguration(client, {}, NPX_REGISTRATION_COMMAND),
|
||||
).toEqual({ status: "create" });
|
||||
).toEqual({ status: "create", dialect: "pi" });
|
||||
expect(
|
||||
await configureClientConfiguration(client, {}, NPX_REGISTRATION_COMMAND),
|
||||
).toMatchObject({ status: "configured" });
|
||||
|
||||
Reference in New Issue
Block a user