diff --git a/tests/bin/eslint.js b/tests/bin/eslint.js index b6254fa5ff14..932dd9ec4517 100644 --- a/tests/bin/eslint.js +++ b/tests/bin/eslint.js @@ -163,6 +163,15 @@ describe("bin/eslint.js", () => { return assertExitCode(child, 0); }); }); + + it("successfully handles more than 4k data via stdin", () => { + const child = runESLint(["--stdin", "--no-eslintrc"]); + const large = fs.createReadStream(`${__dirname}/../bench/large.js`, "utf8"); + + large.pipe(child.stdin); + + return assertExitCode(child, 0); + }); }); describe("running on files", () => {