Skip to content

Commit

Permalink
chore: jsdom runner support windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Apr 26, 2024
1 parent a1289b9 commit ce8ebed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/rspack-test-tools/src/runner/runner/web/jsdom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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});
`;
Expand Down

0 comments on commit ce8ebed

Please sign in to comment.