filter DeprecationWarnings from captured stdio
This commit is contained in:
parent
f08c981388
commit
d7dc764d1a
|
@ -24,7 +24,10 @@ module.exports = (stdio, tty) => {
|
||||||
reset: () => (logs = []),
|
reset: () => (logs = []),
|
||||||
|
|
||||||
toString: () => {
|
toString: () => {
|
||||||
return logs.map(v => stripAnsi(v)).join("");
|
return stripAnsi(logs.join("")).replace(
|
||||||
|
/\([^)]+\) (\[[^\]]+\]\s*)?DeprecationWarning.+(\n\s+at .*)*\n?/g,
|
||||||
|
""
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
toStringRaw: () => {
|
toStringRaw: () => {
|
||||||
|
|
Loading…
Reference in New Issue