13 lines
492 B
JavaScript
13 lines
492 B
JavaScript
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', () => {
|
|
const schema = readFileSync(new URL('../packages/core/src/schema.sql', import.meta.url));
|
|
assert.equal(
|
|
createHash('sha256').update(schema).digest('hex'),
|
|
'ef5d0eea6f91c50e78ca5e28ecdc7b3ed5db83db59200642cc25866158f9d307',
|
|
);
|
|
});
|