From c9bed93f99158d19cd3b0c3eef6d88aa7dcd6dd9 Mon Sep 17 00:00:00 2001 From: Pascal Perrenoud Date: Tue, 21 May 2024 15:58:49 +0200 Subject: [PATCH] Init tests --- bunfig.toml | 2 ++ test/init.ts | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 bunfig.toml create mode 100644 test/init.ts diff --git a/bunfig.toml b/bunfig.toml new file mode 100644 index 0000000..0f705fb --- /dev/null +++ b/bunfig.toml @@ -0,0 +1,2 @@ +[test] +preload = "./test/init.ts" diff --git a/test/init.ts b/test/init.ts new file mode 100644 index 0000000..02ef1b1 --- /dev/null +++ b/test/init.ts @@ -0,0 +1,8 @@ +import {GlobalRegistrator} from '@happy-dom/global-registrator' +import {Console} from 'logger-console' +import {writers, Level} from 'log' + +GlobalRegistrator.register() + +const logger = new Console({ minLevel: Level.DEBUG, with_color: true }) +writers.set('console', logger)