Skip to content

Commit

Permalink
Add more logging to a test failing only in Travis / Node 4
Browse files Browse the repository at this point in the history
  • Loading branch information
insin committed Dec 12, 2017
1 parent 4c2121c commit e2360f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/commands/projects-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ describe('sample projects', function() {
console.log('HMR open: changing file in 5s')
setTimeout(() => {
state = States.CHANGED_FILE
console.log('HMR open: set state = CHANGED_FILE')
let content = fs.readFileSync(path.join(tmpDir, 'src/App.js'), 'utf-8')
console.log('HMR open: changing file now')
fs.writeFileSync(path.join(tmpDir, 'src/App.js'), content.replace('Welcome to', 'Change'))
}, 5000)
}
Expand All @@ -117,7 +119,9 @@ describe('sample projects', function() {
}

hmrClient.onmessage = e => {
// Ignore hearbeat
if (e.data === '\uD83D\uDC93') {
console.log(e.data)
return
}

Expand Down

0 comments on commit e2360f1

Please sign in to comment.