Default server config contract to strict livestore mode
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
7ee0cce572
commit
0611b8220f
2 files changed
+3
-3
No files matched your search
@@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest";
|
||||
import { serverConfigSchema } from "./server";
|
||||
|
||||
describe("serverConfigSchema", () => {
|
||||
it("defaults syncEngineMode to legacy when omitted", () => {
|
||||
it("defaults syncEngineMode to livestore when omitted", () => {
|
||||
expect(
|
||||
serverConfigSchema.parse({
|
||||
cwd: "/workspace",
|
||||
@@ -10,7 +10,7 @@ describe("serverConfigSchema", () => {
|
||||
}),
|
||||
).toEqual({
|
||||
cwd: "/workspace",
|
||||
syncEngineMode: "legacy",
|
||||
syncEngineMode: "livestore",
|
||||
keybindings: [],
|
||||
});
|
||||
});
|
||||
|
||||
@@ -5,7 +5,7 @@ export const serverConfigSchema = z.object({
|
||||
cwd: z.string().min(1),
|
||||
syncEngineMode: z
|
||||
.enum(["legacy", "shadow", "livestore-read-pilot", "livestore"])
|
||||
.default("legacy"),
|
||||
.default("livestore"),
|
||||
keybindings: resolvedKeybindingsConfigSchema.default([]),
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user