Skip to content

Commit b3b0885

Browse files
committed
test: add logs for debugging failing tests
1 parent ea6a7f3 commit b3b0885

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/dev_server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ export class DevServer {
430430
* @param action - Whether the file was added or deleted
431431
*/
432432
#regenerateIndex(filePath: string, action: 'add' | 'delete') {
433+
console.log({ filePath })
433434
if (action === 'add') {
434435
return this.#indexGenerator.addFile(filePath)
435436
}
@@ -702,6 +703,7 @@ export class DevServer {
702703
this.#watcher.on('add', (filePath) => {
703704
const relativePath = string.toUnixSlash(filePath)
704705
const absolutePath = join(this.#cwdPath, filePath)
706+
console.log({ relativePath, absolutePath })
705707
this.#hooks.runner('fileAdded').run(relativePath, absolutePath, this)
706708
})
707709
this.#watcher.on('change', (filePath) => {

0 commit comments

Comments
 (0)