* Returns file names in current directory. * * ```js * I.handleDownloads(); * I.click('Download Files'); * I.amInPath('output/downloads'); * const downloadedFileNames = I.grabFileNames(); * ```
()
| 196 | * ``` |
| 197 | */ |
| 198 | grabFileNames() { |
| 199 | return fs.readdirSync(this.dir).filter(item => !fs.lstatSync(path.join(this.dir, item)).isDirectory()) |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | export { FileSystem as default } |
no test coverage detected