(filePath)
| 60 | } |
| 61 | |
| 62 | export const isFile = function (filePath) { |
| 63 | let filestat |
| 64 | try { |
| 65 | filestat = fs.statSync(filePath) |
| 66 | } catch (err) { |
| 67 | if (err.code === 'ENOENT') return false |
| 68 | } |
| 69 | if (!filestat) return false |
| 70 | return filestat.isFile() |
| 71 | } |
| 72 | |
| 73 | export const getParamNames = function (fn) { |
| 74 | if (fn.isSinonProxy) return [] |