Просмотр исходного кода

feat(pytest): When using pytest, run webpack with more memory (#15688)

Alberto Leal 5 лет назад
Родитель
Сommit
c693e0b334
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      tests/acceptance/conftest.py

+ 6 - 1
tests/acceptance/conftest.py

@@ -57,5 +57,10 @@ def pytest_configure(config):
     )
     )
 
 
     subprocess.call(
     subprocess.call(
-        ["yarn", "webpack"], env={"NODE_ENV": "development", "PATH": os.environ["PATH"]}
+        ["yarn", "webpack"],
+        env={
+            "NODE_ENV": "development",
+            "PATH": os.environ["PATH"],
+            "NODE_OPTIONS": "--max-old-space-size=4096",
+        },
     )
     )