import { execFileSync } from'node:child_process';import { describe, it } from'vitest';describe('Swift definition types', () => { it('handles source changes, serde wire keys and renamed twins on synthetic source', () => { execFileSync('python3', ['scripts/test-swift-definition-types.py'], { stdio: 'pipe' }); });/// RULE: Swift's definition storage is generated from Rust types; drift would let the core accept a shape the app cannot draw. it('matches a fresh generation, with the regeneration command on failure', () => { execFileSync('python3', ['scripts/gen-swift-definition-types.py', '--check'], { stdio: 'pipe' }); });/// RULE: A generated definition shape has no handwritten Swift storage twin; two field lists silently diverge when the format changes. it('has no handwritten storage twins', () => { execFileSync('python3', ['scripts/gen-swift-definition-types.py', '--scan'], { stdio: 'pipe' }); });});