Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 4d140e9

Browse files
committed
Add more loggin to express middleware test
1 parent 4c2121c commit 4d140e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/commands/projects-test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ describe('sample projects', function() {
106106
console.log('HMR open: changing file in 5s')
107107
setTimeout(() => {
108108
state = States.CHANGED_FILE
109+
console.log('HMR open: set state = CHANGED_FILE')
109110
let content = fs.readFileSync(path.join(tmpDir, 'src/App.js'), 'utf-8')
111+
console.log('HMR open: changing file now')
110112
fs.writeFileSync(path.join(tmpDir, 'src/App.js'), content.replace('Welcome to', 'Change'))
111113
}, 5000)
112114
}
@@ -117,7 +119,9 @@ describe('sample projects', function() {
117119
}
118120

119121
hmrClient.onmessage = e => {
122+
// Ignore hearbeat
120123
if (e.data === '\uD83D\uDC93') {
124+
console.log(e.data)
121125
return
122126
}
123127

0 commit comments

Comments
 (0)