1
0
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:
Hinton
2021-12-10 16:07:47 +01:00
parent be4a951765
commit 87908200c6
15 changed files with 938 additions and 161 deletions

9
node/spec/helpers.ts Normal file
View 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;