import { readFileSync } from 'node:fs' import { resolve } from 'node:path' import { describe, expect, it } from 'vitest' const source = readFileSync(resolve(process.cwd(), 'src/modules/inbounds/weight/components/WeightOcrPanel.vue'), 'utf8') describe('WeightOcrPanel contract', () => { it('uses customer language at the page boundary while retaining a compatibility input', () => { expect(source).toContain("defineProps<{ customerId?: string; tenantId?: string; inboundId: string }>()") expect(source).toContain("const customerId = computed(() => props.customerId || props.tenantId || '')") expect(source).toContain("defineEmits<{ changed: [] }>()") expect(source).toContain("defineExpose({ reload: loadWorkspace })") const template = source.match(/