@river-build/sdk
Version:
For more details, visit the following resources:
12 lines • 557 B
JavaScript
import { SnapshotSchema } from '@river-build/proto';
import { create } from '@bufbuild/protobuf';
import { snapshotMigration0000 } from '../../migrations/snapshotMigration0000';
// a no-op migration test for the initial snapshot, use as a template for new migrations
describe('snapshotMigration0000', () => {
test('run migration', () => {
const snapshot = create(SnapshotSchema, {});
const result = snapshotMigration0000(snapshot);
expect(result).toBe(snapshot);
});
});
//# sourceMappingURL=snapshotMigration0000.test.js.map