From 6493a2d41f5f5706e7ca988a0749215ad917026d Mon Sep 17 00:00:00 2001 From: Yusuf Tomilola <52901501+yusuftomilola@users.noreply.github.com> Date: Fri, 29 May 2026 20:08:15 +0100 Subject: [PATCH] feat: add detox jest runner config for e2e tests --- mobile/e2e/jest.config.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 mobile/e2e/jest.config.js diff --git a/mobile/e2e/jest.config.js b/mobile/e2e/jest.config.js new file mode 100644 index 0000000..9c63f75 --- /dev/null +++ b/mobile/e2e/jest.config.js @@ -0,0 +1,13 @@ +/** @type {import('@jest/types').Config.InitialOptions} */ +module.exports = { + testEnvironment: 'node', + testRunner: 'jest-circus/runner', + testTimeout: 120000, + testRegex: '\.test\.js$', + reporters: ['detox/runners/jest/reporter'], + globalSetup: 'detox/runners/jest/globalSetup', + globalTeardown: 'detox/runners/jest/globalTeardown', + testEnvironmentOptions: { + eventListeners: ['detox/runners/jest/testEnvironmentListener'], + }, +};