feat: add convex state functions for snapshot persistence
This commit is contained in:
@@ -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/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user