Files
obelisk/tests/provider-schema-stability.test.mjs
T

13 lines
492 B
JavaScript
Raw Normal View History

2026-07-20 22:43:23 +08:00
import { test } from 'node:test';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { readFileSync } from 'node:fs';
test('canonical transcript persistence schema changes only by explicit decision', () => {
2026-07-20 22:43:23 +08:00
const schema = readFileSync(new URL('../packages/core/src/schema.sql', import.meta.url));
assert.equal(
createHash('sha256').update(schema).digest('hex'),
'ef5d0eea6f91c50e78ca5e28ecdc7b3ed5db83db59200642cc25866158f9d307',
2026-07-20 22:43:23 +08:00
);
});