Skip to content

Commit

Permalink
test(cli): temporarily remove stdin cli tests
Browse files Browse the repository at this point in the history
  • Loading branch information
knagaitsev committed Jul 12, 2019
1 parent e00f6c7 commit fc3cf48
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions test/cli/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,49 +122,6 @@ describe('CLI', () => {
.catch(done);
});

it('without --stdin, with stdin "end" event should time out', (done) => {
const configPath = resolve(
__dirname,
'../fixtures/simple-config/webpack.config.js'
);
const childProcess = testBin(false, configPath);

setTimeout(() => {
childProcess.stdin.emit('end');
}, 500);

setTimeout(() => {
childProcess.kill();
}, 1000);

childProcess.then(done).catch((e) => {
expect(e.timedOut).toBeFalsy();
expect(e.killed).toBeTruthy();
done();
});
});

it('--stdin, with "end" event should exit without time out', (done) => {
const configPath = resolve(
__dirname,
'../fixtures/simple-config/webpack.config.js'
);
const childProcess = testBin('--stdin', configPath);

setTimeout(() => {
childProcess.stdin.emit('end');
}, 500);

childProcess
.then((output) => {
expect(output.code).toEqual(0);
expect(output.timedOut).toBeFalsy();
expect(output.killed).toBeFalsy();
done();
})
.catch(done);
});

it('should accept the promise function of webpack.config.js', (done) => {
testBin(
false,
Expand Down

0 comments on commit fc3cf48

Please sign in to comment.