Set max old space size on coverage and test (#5382)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>pull/5325/head^2
parent
855c39cf58
commit
e8f24d6ba0
@ -0,0 +1,10 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
# This script sets the node `--max-old-space-size` to 8192 if it is not set already. |
||||
# All existing `NODE_OPTIONS` are retained as is. |
||||
|
||||
export NODE_OPTIONS="${NODE_OPTIONS:-}" |
||||
|
||||
if [[ $NODE_OPTIONS != *"--max-old-space-size"* ]]; then |
||||
export NODE_OPTIONS="${NODE_OPTIONS} --max-old-space-size=8192" |
||||
fi |
Loading…
Reference in new issue