import { describe, expect, it } from 'vitest'; /** * 纯逻辑占位:删除服务依赖 DB,此处仅锁住「无编码则 deleted=0」契约, * 避免误改入口签名。完整删除在联调验收。 */ describe('productDeleteService contract', () => { it('empty codes resolve to zero deleted without throw', async () => { const { deleteCatalogProducts } = await import('../src/services/productDeleteService'); const result = await deleteCatalogProducts([], 'BR_TEST'); expect(result).toEqual({ deleted: 0 }); }); });