MCPcopy Create free account
hub / github.com/TabularisDB/tabularis / createMockSchemaCache

Function createMockSchemaCache

tests/utils/editor.test.ts:697–704  ·  view source on GitHub ↗
(
      overrides: Partial<SchemaCache> = {},
    )

Source from the content-addressed store, hash-verified

695
696 describe("shouldUseCachedSchema", () => {
697 const createMockSchemaCache = (
698 overrides: Partial<SchemaCache> = {},
699 ): SchemaCache => ({
700 data: [],
701 version: 1,
702 timestamp: Date.now(),
703 ...overrides,
704 });
705
706 it("should return false when no cache exists", () => {
707 const result = shouldUseCachedSchema(undefined);

Callers 1

editor.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected