feat: add convex state functions for snapshot persistence

This commit is contained in:
Codex
2026-02-18 14:25:46 +00:00
parent 42684125f9
commit 77f7f10921
5 changed files with 79 additions and 0 deletions

View File

@@ -35,3 +35,11 @@ test("env example includes required webhook and credit settings", () => {
assert.match(envFile, /INCLUDED_CHARS=/);
assert.match(envFile, /WEBHOOK_RPM=/);
});
test("convex state function files exist", () => {
const schema = fs.readFileSync("convex/schema.ts", "utf8");
const state = fs.readFileSync("convex/state.ts", "utf8");
assert.match(schema, /defineSchema/);
assert.match(state, /getLatestSnapshot/);
assert.match(state, /saveSnapshot/);
});