Skip to content

Commit

Permalink
fix console.log in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Jan 20, 2025
1 parent 1bf3acf commit ed46d90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/happydom.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { GlobalRegistrator } from "@happy-dom/global-registrator";

// FIX for https://github.com/oven-sh/bun/issues/6044
const oldconsole = console;
GlobalRegistrator.register();
window.console = oldconsole;

0 comments on commit ed46d90

Please sign in to comment.