* Checks that file exists * @param {string} name
(name)
| 76 | * @param {string} name |
| 77 | */ |
| 78 | seeFile(name) { |
| 79 | this.file = path.join(this.dir, name) |
| 80 | try { |
| 81 | this.debugSection('File', this.file) |
| 82 | } catch (e) { |
| 83 | // Fallback debug for ESM transition |
| 84 | console.log(`[File] ${this.file}`) |
| 85 | } |
| 86 | assert.ok(fileExists(this.file), `File ${name} not found in ${this.dir}`) |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Waits for the file to be present in the current directory. |
no test coverage detected