Rocket.Chat.ReactNative/e2e/globalSetup.ts

14 lines
316 B
TypeScript
Raw Normal View History

2023-02-08 16:06:06 +00:00
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();
};