(config: Config)
| 82 | ]; |
| 83 | |
| 84 | export function detectFramework(config: Config): FrameworkConfig | undefined { |
| 85 | const frameworks = FRAMEWORK_CONFIGS.filter((f) => f.isMatch(config)).sort((a, b) => { |
| 86 | if (a.priority < b.priority) return -1; |
| 87 | if (a.priority > b.priority) return 1; |
| 88 | return 0; |
| 89 | }); |
| 90 | return frameworks[0]; |
| 91 | } |
| 92 | |
| 93 | function hasDependency(config: Config, depName: string): boolean { |
| 94 | const deps = getDependencies(config); |
no outgoing calls
no test coverage detected