From ce8ebed5a3034c99f6ab66fbe78b036034ce41d5 Mon Sep 17 00:00:00 2001 From: LingyuCoder Date: Fri, 26 Apr 2024 16:33:03 +0800 Subject: [PATCH] chore: jsdom runner support windows --- packages/rspack-test-tools/src/runner/runner/web/jsdom.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/rspack-test-tools/src/runner/runner/web/jsdom.ts b/packages/rspack-test-tools/src/runner/runner/web/jsdom.ts index 225d1d3ca2e..f16842153c3 100644 --- a/packages/rspack-test-tools/src/runner/runner/web/jsdom.ts +++ b/packages/rspack-test-tools/src/runner/runner/web/jsdom.ts @@ -190,6 +190,11 @@ export class JSDOMWebRunner< } }); (function(window, self, globalThis, ${args.join(", ")}) { + var console = { + log: function() {}, + error: function() {}, + warn: function() {} + }; ${file.content} })($$g$$, $$g$$, $$g$$, ${argValues}); `;