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 732433c commit 06a22f1Copy full SHA for 06a22f1
tests/bin/eslint.js
@@ -1343,15 +1343,19 @@ describe("bin/eslint.js", () => {
1343
describe("MCP server", () => {
1344
it("should start the MCP server when the --mcp flag is used", done => {
1345
const child = runESLint(["--mcp"]);
1346
+ let doneCalled = false;
1347
1348
// should not have anything on std out
1349
child.stdout.on("data", data => {
1350
assert.fail(`Unexpected stdout data: ${data}`);
1351
});
1352
1353
child.stderr.on("data", data => {
- assert.match(data.toString(), /@eslint\/mcp/u);
1354
- done();
+ if (!doneCalled) {
1355
+ assert.match(data.toString(), /@eslint\/mcp/u);
1356
+ doneCalled = true;
1357
+ done();
1358
+ }
1359
1360
1361
0 commit comments