// Determine which `assert.x` methods are used in a codebase // Run with jscodeshift using the --dry option export default function transformer(file, api) { const { jscodeshift: j, stats} = api; const root = j(file.source); root.find(j.CallExpression, { callee: { object: { name: 'assert' } } }).forEach(p => { stats(p.node.callee.property.name); }); };