Skip to content

Commit

Permalink
Add failing worker disconnect test case
Browse files Browse the repository at this point in the history
  • Loading branch information
fkling committed Mar 27, 2016
1 parent 0d94661 commit 668ed8d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/__tests__/jscodeshift-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,19 @@ describe('jscodeshift CLI', () => {
);
});

pit('does not stall with too many files', () => {
var sources = [];
for (var i = 0; i < 100; i++) {
sources.push(createTempFileWith('a'));
}
var transform = createTransformWith('');
return run(['-t', transform, '--foo=42'].concat(sources)).then(
([stdout, stderr]) => {
expect(true).toBe(true);
}
);
});

describe('output', () => {
pit('shows workers info and stats at the end by default', () => {
var source = createTempFileWith('a');
Expand Down

0 comments on commit 668ed8d

Please sign in to comment.