Skip to content

Commit

Permalink
test: try some change
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Dec 16, 2022
1 parent a98df37 commit 0b8cdf0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions test/cli/samples/watch/bundle-error/_config.js
Expand Up @@ -17,11 +17,18 @@ module.exports = {
},
abortOnStderr(data) {
if (data.includes('[!] RollupError: Unexpected token')) {
setTimeout(() => atomicWriteFileSync(mainFile, 'export default 42;'), 500);
console.log('TRIGGER WRITE FILE');
setTimeout(() => {
console.log('ACTUAL WRITE');
atomicWriteFileSync(mainFile, 'export default 42;');
atomicWriteFileSync(mainFile, 'export default 42;');
}, 500);
return false;
}
if (data.includes('created _actual')) {
} else if (data.includes('created _actual')) {
console.log('DONE');
return true;
} else {
console.log('NO TRIGGER:', data);
}
}
};

0 comments on commit 0b8cdf0

Please sign in to comment.