(path: string)
| 127 | requests==2.28.0 |
| 128 | `; |
| 129 | const readFile = (path: string) => { |
| 130 | if (path === 'other-requirements.txt') return 'numpy>=1.0\n'; |
| 131 | if (path === 'constraints.txt') return 'requests==2.28.0\n'; |
| 132 | return null; |
| 133 | }; |
| 134 | const result = await parseRequirementsFile(content, { readFile }); |
| 135 | expect(result.requirements).toEqual([ |
| 136 | { name: 'flask', version: '>=2.0.0' }, |
no outgoing calls
no test coverage detected