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 a0c42ad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/cli/samples/watch/bundle-error/_config.js
Expand Up @@ -17,11 +17,14 @@ module.exports = {
},
abortOnStderr(data) {
if (data.includes('[!] RollupError: Unexpected token')) {
console.log('TRIGGER WRITE FILE');
setTimeout(() => 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 a0c42ad

Please sign in to comment.