refactor: unwrap ConfigMCP namespace + self-reexport (#22948)
This commit is contained in:
parent
c03fa36257
commit
5d47ea0918
1 changed files with 104 additions and 92 deletions
|
|
@ -757,7 +757,7 @@ test("updates config and writes to file", async () => {
|
|||
const newConfig = { model: "updated/model" }
|
||||
await save(newConfig as any)
|
||||
|
||||
const writtenConfig = await Filesystem.readJson(path.join(tmp.path, "config.json"))
|
||||
const writtenConfig = await Filesystem.readJson<{ model: string }>(path.join(tmp.path, "config.json"))
|
||||
expect(writtenConfig.model).toBe("updated/model")
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue