Rocket.Chat.ReactNative/e2e/globalSetup.ts

14 lines
316 B
TypeScript

import { setup } from './helpers/data_setup';
import random from './helpers/random';
// declare global {
// // eslint-disable-next-line no-var
// var random: string;
// }
module.exports = async () => {
await require('detox/runners/jest/index').globalSetup();
globalThis.random = random(20);
await setup();
};