mirror of
https://github.com/bitwarden/jslib
synced 2025-12-21 10:43:23 +00:00
Move remaining tests to node
This commit is contained in:
9
node/spec/helpers.ts
Normal file
9
node/spec/helpers.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// tslint:disable-next-line
|
||||
const TSConsoleReporter = require('jasmine-ts-console-reporter');
|
||||
jasmine.getEnv().clearReporters(); // Clear default console reporter
|
||||
jasmine.getEnv().addReporter(new TSConsoleReporter());
|
||||
|
||||
// Polyfills
|
||||
// tslint:disable-next-line
|
||||
const jsdom: any = require('jsdom');
|
||||
(global as any).DOMParser = new jsdom.JSDOM().window.DOMParser;
|
||||
Reference in New Issue
Block a user