Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

150
Vistas
Detox react-native ejecuta múltiples archivos e2e

Empecé a hacer varias pruebas con detox (en mi proyecto nativo de reacción) en un archivo y me preguntaba si era posible hacerlo en varios archivos.

porque cuando probé en 2 archivos diferentes, la desintoxicación comienza con el segundo archivo y no con el primero.

Aquí está mi .detoxrc.json:

 "testRunner": "jest", "runnerConfig": "e2e/config.json", "skipLegacyWorkersInjection": true, "apps": { "ios": { "type": "ios.app", "binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/mobileApp.app", "build": "xcodebuild -workspace ios/mobileApp.xcworkspace -scheme mobileApp -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build" }, "android": { "type": "android.apk", "binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk", "build": "cd android && ./gradlew app:assembleDebug app:assembleAndroidTest -DtestBuildType=debug && cd .." } }, "devices": { "simulator": { "type": "ios.simulator", "device": { "type": "iPhone 11" } }, "emulator": { "type": "android.emulator", "device": { "avdName": "Pixel_3a_API_28" } }

mi config.json:

 { "preset": "ts-jest", "testEnvironment": "node", "setupFilesAfterEnv": ["./init.ts"], "maxWorkers": 1, "testRunner": "jest-circus/runner", "testTimeout": 120000, "testRegex": "\\.e2e\\.ts$", "reporters": ["detox/runners/jest/streamlineReporter"], "verbose": true }

y mi init.ts:

 import { cleanup, init, device } from 'detox'; beforeAll(async () => { await init(); await device.launchApp({ permissions: { photos: 'YES', camera: 'YES' } }); await device.reloadReactNative(); }); beforeEach(async () => { await device.launchApp(); // await device.reloadReactNative(); }); afterAll(async () => { await cleanup(); });

Si tienes una idea?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda