Skip to content

Commit

Permalink
Trigger refresh directly, not via touch, and do not enforce UTF-8 enc…
Browse files Browse the repository at this point in the history
…oding
  • Loading branch information
fbennett committed Mar 21, 2019
1 parent c29f9d3 commit e25894e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/runtests.js
Expand Up @@ -17,10 +17,14 @@ var TRAVIS = process.env.TRAVIS;

process.stdin.setRawMode(true);
process.stdin.resume();
process.stdin.setEncoding( 'utf8' );

// The console needs to run in binary mode, to give the fancy reporters
// control over the terminal
//process.stdin.setEncoding( 'utf8' );

process.stdin.on('data', function( key ){
// ctrl-c ( end of text )
if ( key === '\u0003' ) {
if ( key.toString("hex") === "03" ) {
console.log("\n");
process.exit();
}
Expand Down Expand Up @@ -865,13 +869,13 @@ function runFixturesAsync() {
txt = txt.replace("%%RESULT%%", result)
fs.writeFileSync(path.join(scriptDir, config.path.styletests, options.S, fn + ".txt"), txt);
// Should this be promisified?
spawn("touch", [options.watch[0]]);
bundleValidateTest();
resolve();
}
if (key == "n" || key == "N") {
skipNames[test.NAME] = true;
// Should this be promisified?
spawn("touch", [options.watch[0]]);
bundleValidateTest();
resolve();
}
}
Expand Down

0 comments on commit e25894e

Please sign in to comment.