We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8690819 commit f123c08Copy full SHA for f123c08
1 file changed
test/tests.js
@@ -86,15 +86,19 @@ describe('runs codemods', function() {
86
}
87
});
88
89
- ps.stdout.on('data', data => {
+ function stdoutData(data) {
90
let str = data.toString();
91
if (str.includes('These codemods apply to your project.')) {
92
let down = '\u001b[B';
93
let space = ' ';
94
let enter = '\n';
95
ps.stdin.write(`${down.repeat(i)}${space}${enter}`);
96
+
97
+ ps.stdout.removeListener('data', stdoutData);
98
- });
99
+ }
100
101
+ ps.stdout.on('data', stdoutData);
102
103
let {
104
status
0 commit comments