(context: ResolutionContext)
| 96 | * Detect which frameworks are used in a project |
| 97 | */ |
| 98 | export function detectFrameworks(context: ResolutionContext): FrameworkResolver[] { |
| 99 | return FRAMEWORK_RESOLVERS.filter((resolver) => { |
| 100 | try { |
| 101 | return resolver.detect(context); |
| 102 | } catch { |
| 103 | return false; |
| 104 | } |
| 105 | }); |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Filter a list of detected frameworks down to ones that apply to a given language. |
no test coverage detected