Skip to content

Commit

Permalink
Trying to detemine cause of test failing only in Travis / Node 4
Browse files Browse the repository at this point in the history
  • Loading branch information
insin committed Dec 13, 2017
1 parent 4c2121c commit eb012e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -36,7 +36,7 @@
"detect-port": "1.2.2",
"figures": "2.0.0",
"filesize": "3.5.11",
"fs-extra": "4.0.3",
"fs-extra": "4.0.2",
"gzip-size": "4.1.0",
"inquirer": "3.3.0",
"minimist": "1.2.0",
Expand Down Expand Up @@ -93,7 +93,7 @@
"whatwg-fetch": "2.0.3",

"webpack": "3.10.0",
"autoprefixer": "7.2.2",
"autoprefixer": "7.2.1",
"babel-loader": "7.1.2",
"case-sensitive-paths-webpack-plugin": "2.1.1",
"copy-webpack-plugin": "4.2.3",
Expand All @@ -108,7 +108,7 @@
"uglifyjs-webpack-plugin": "1.1.2",
"url-loader": "0.6.2",
"webpack-dev-middleware": "1.12.2",
"webpack-dev-server": "2.9.7",
"webpack-dev-server": "2.9.5",
"webpack-hot-middleware": "2.21.0"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions tests/commands/projects-test.js
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 eb012e7

Please sign in to comment.