Skip to content

Commit 094c221

Browse files
committed
ci: add debugging log for failing test
1 parent 0c04b0b commit 094c221

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"scripts": {
1717
"pretest": "npm run lint",
18-
"test": "cross-env NODE_DEBUG=adonisjs:assembler c8 npm run vscode:test",
18+
"test": "cross-env NODE_DEBUG=chokidar:ts c8 npm run vscode:test",
1919
"lint": "eslint . --ext=.ts",
2020
"clean": "del-cli build",
2121
"compile": "npm run lint && npm run clean && tsc",

tests/watch.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ test.group('Watcher', () => {
2323
)
2424
await fs.create('foo.ts', '')
2525

26-
const output = watch(fs.baseUrl, ts, {})
26+
const output = watch(fs.baseUrl, ts, { poll: true })
2727
cleanup(() => output!.chokidar.close())
2828

29+
output?.chokidar.on('all', (event, path) => {
30+
console.log('chokidar event', { event, path })
31+
})
32+
2933
output!.watcher.on('source:add', (file) => {
3034
assert.equal(file.relativePath, 'bar.ts')
3135
done()

0 commit comments

Comments
 (0)