mirror of https://github.com/webpack/webpack.git
test: fix import assertion (#19260)
This commit is contained in:
parent
564a0e52a0
commit
0377fb1643
|
|
@ -17,10 +17,16 @@ module.exports = (stdio, tty) => {
|
|||
reset: () => (logs = []),
|
||||
|
||||
toString: () =>
|
||||
stripAnsi(logs.join("")).replace(
|
||||
/\([^)]+\) (\[[^\]]+\]\s*)?(Deprecation|Experimental)Warning.+(\n\(Use .node.+\))?(\n(\s|BREAKING CHANGE).*)*(\n\s+at .*)*\n?/g,
|
||||
""
|
||||
),
|
||||
stripAnsi(logs.join(""))
|
||||
.replace(
|
||||
/\([^)]+\) (\[[^\]]+\]\s*)?(Deprecation|Experimental)Warning.+(\n\(Use .node.+\))?(\n(\s|BREAKING CHANGE).*)*(\n\s+at .*)*\n?/g,
|
||||
""
|
||||
)
|
||||
// Ignore deprecated `import * as pkg from "file.json" assert { type: "json" };`
|
||||
.replace(
|
||||
/\([^)]+\) (\[[^\]]+\]\s*)?(V8:).* 'assert' is deprecated in import statements and support will be removed in a future version; use 'with' instead\n/g,
|
||||
""
|
||||
),
|
||||
|
||||
toStringRaw: () => logs.join(""),
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue