(modulePath, moduleName)
| 192 | } |
| 193 | |
| 194 | export const inject = (modulePath, moduleName) => { |
| 195 | const info = getModuleInfo(modulePath, moduleName) |
| 196 | const flagList = getFlag(info.name, info.version) |
| 197 | if (Array.isArray(flagList)) { |
| 198 | flagList.some((flag) => injectCode(modulePath, flag)) |
| 199 | } else { |
| 200 | injectCode(modulePath, flagList) |
| 201 | } |
| 202 | return true |
| 203 | } |
| 204 | |
| 205 | const revertCode = ( |
| 206 | modulePath, |
no test coverage detected