From 26fe36a9611c3e3173447bc3c4ed1421b9b3ca85 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 23 Feb 2023 09:36:24 -0300 Subject: [PATCH] Remove globalSetup --- e2e/globalSetup.ts | 6 ------ e2e/jest.config.js | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 e2e/globalSetup.ts diff --git a/e2e/globalSetup.ts b/e2e/globalSetup.ts deleted file mode 100644 index 2ef6b51f1..000000000 --- a/e2e/globalSetup.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { setup } from './helpers/data_setup'; - -module.exports = async () => { - await require('detox/runners/jest/index').globalSetup(); - // await setup(); -}; diff --git a/e2e/jest.config.js b/e2e/jest.config.js index bfcee65a3..5c9dc559f 100644 --- a/e2e/jest.config.js +++ b/e2e/jest.config.js @@ -5,7 +5,7 @@ module.exports = { testMatch: ['/e2e/tests/**/*.spec.ts'], testTimeout: 240000, maxWorkers: 3, - globalSetup: '/e2e/globalSetup.ts', + globalSetup: 'detox/runners/jest/globalSetup', globalTeardown: 'detox/runners/jest/globalTeardown', reporters: ['detox/runners/jest/reporter'], testEnvironment: 'detox/runners/jest/testEnvironment',