initial work to add IndexedDB support, including npm module to mock its API in unit tests

This commit is contained in:
El RIDO
2020-06-28 14:52:40 +02:00
parent c4830044f7
commit ac32826009
5 changed files with 74 additions and 10 deletions

View File

@@ -8,6 +8,7 @@ global.cleanup = global.jsdom();
global.URL = require('jsdom-url').URL;
global.fs = require('fs');
global.WebCrypto = require('@peculiar/webcrypto').Crypto;
require('fake-indexeddb/auto');
// application libraries to test
global.$ = global.jQuery = require('./jquery-3.4.1');