Skip to content

Commit e101840

Browse files
committed
Add indexeddb polyfil
1 parent a6fafa7 commit e101840

File tree

3 files changed

+336
-2
lines changed

3 files changed

+336
-2
lines changed

integration/test/helper.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const CustomAuth = require('./CustomAuth');
55
const sleep = require('./sleep');
66
const { TestUtils } = require('parse-server');
77
const Parse = require('../../node');
8+
const setGlobalVars = require('indexeddbshim');
89

910
const port = 1337;
1011
const mountPath = '/parse';
@@ -114,6 +115,8 @@ global.Container = Parse.Object.extend('Container');
114115
global.TestPoint = Parse.Object.extend('TestPoint');
115116
global.TestObject = Parse.Object.extend('TestObject');
116117
global.reconfigureServer = reconfigureServer;
118+
global.window = global; // Used for indexedDB shim
119+
setGlobalVars();
117120

118121
beforeAll(async () => {
119122
await reconfigureServer();

0 commit comments

Comments
 (0)