[tests] new test infra
This commit is contained in:
parent
ebdea3d68f
commit
1572aa10a2
|
@ -6,7 +6,6 @@ describe('firestore.runTransaction', () => {
|
|||
});
|
||||
|
||||
it('should set, update and delete transactionally and allow a return value', async () => {
|
||||
const firebase = bridge.module;
|
||||
let deleteMe = false;
|
||||
const firestore = firebase.firestore();
|
||||
|
||||
|
|
|
@ -13,19 +13,8 @@ after(async () => {
|
|||
await detox.cleanup();
|
||||
});
|
||||
|
||||
// bridge.beforeContextReset = () => {
|
||||
// console.log('hello');
|
||||
// };
|
||||
|
||||
Object.defineProperty(global, 'firebase', {
|
||||
get() {
|
||||
return bridge.module;
|
||||
},
|
||||
set() {
|
||||
// do nothing
|
||||
},
|
||||
});
|
||||
|
||||
// Object.defineProperty(global, 'firebase', { value: undefined });
|
||||
|
||||
// delete global.firebase;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
--recursive
|
||||
--timeout 120000
|
||||
--slow 2000
|
||||
--slow 2200
|
||||
--bail
|
||||
--exit
|
||||
--require ./bridge/env/node
|
||||
|
|
Loading…
Reference in New Issue