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)