diff --git a/patches/mocha-chrome+2.2.0.patch b/patches/mocha-chrome+2.2.0.patch new file mode 100644 index 0000000000..147d8086a1 --- /dev/null +++ b/patches/mocha-chrome+2.2.0.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/mocha-chrome/lib/client.js b/node_modules/mocha-chrome/lib/client.js +index 7629126..cd3d163 100644 +--- a/node_modules/mocha-chrome/lib/client.js ++++ b/node_modules/mocha-chrome/lib/client.js +@@ -9,7 +9,7 @@ module.exports = async function connectClient(instance, log, options) { + return fs.readFileSync(filePath, 'utf-8'); + } + +- const client = await CDP({ port: instance.port }); ++ const client = await CDP({ port: instance.port, host: '127.0.0.1' }); + const { DOM, DOMStorage, Console, Network, Page, Runtime } = client; + const mochaOptions = `window.mochaOptions = ${JSON.stringify(options.mocha)}`; +