(content: string, framework: string)
| 17 | } |
| 18 | |
| 19 | export function addLcovReporter(content: string, framework: string): string { |
| 20 | switch (framework) { |
| 21 | case 'vitest': |
| 22 | return addLcovToVitest(content); |
| 23 | case 'jest': |
| 24 | return addLcovToJest(content); |
| 25 | default: |
| 26 | return content; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | function addLcovToVitest(content: string): string { |
| 31 | try { |
no test coverage detected