// Test LGPL handling in bomAgent jest.mock('license-checker', () => ({ init: (_opts: any, cb: Function) => { const data: Record = { 'lib@1.0.0': { licenses: 'LGPL-3.0' }, }; cb(null, data); }, })); import { bomAgent } from '../src/services/qualimetrie/bomAgent'; describe('bomAgent LGPL licensing', () => { it('should classify LGPL as Medium risk', async () => { const res = await bomAgent(); expect(res.packages).toHaveLength(1); expect(res.packages[0]).toMatchObject({ name: 'lib', version: '1.0.0', risk: 'Medium' }); }); });