Explorar el Código

get rid of event listener warning when running tests

Hakim El Hattab hace 5 años
padre
commit
c1b2e415db
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      gulpfile.js

+ 3 - 0
gulpfile.js

@@ -31,6 +31,9 @@ const banner = `/*!
 * Copyright (C) 2020 Hakim El Hattab, https://hakim.se
 */\n`
 
+// Prevents warnings from opening too many test pages
+process.setMaxListeners(20);
+
 const rollupConfig = {
     plugins: [
         babel({