| 201 | ) > 0; |
| 202 | |
| 203 | const hasNoCallsToDeprecatedAPIs = classPath => { |
| 204 | if (checkDeprecatedAPICalls(classPath)) { |
| 205 | console.warn( |
| 206 | file.path + ': `' + ReactUtils.directlyGetComponentName(classPath) + '` ' + |
| 207 | 'was skipped because of deprecated API calls. Remove calls to ' + |
| 208 | DEPRECATED_APIS.join(', ') + ' in your React component and re-run ' + |
| 209 | 'this script.' |
| 210 | ); |
| 211 | return false; |
| 212 | } |
| 213 | return true; |
| 214 | }; |
| 215 | |
| 216 | const hasNoRefsToAPIsThatWillBeRemoved = classPath => { |
| 217 | const hasInvalidCalls = ( |
no test coverage detected