Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.1K
Views
Detox test failed to run: Cannot read properties of undefined (reading 'testEnvironmentOptions')

I've been trying to run some detox tests on a react native app. These tests had been working up till recently. Now I am getting the error: Test suite failed to run

TypeError: Cannot read properties of undefined (reading 'testEnvironmentOptions')

  11 |     // Can be safely removed, if you are content with the default value (=300000ms)
  12 |     this.initTimeout = 30000000;
> 13 |
     | ^
  14 |     // This takes care of generating status logs on a per-spec basis. By default, Jest only reports at file-level.
  15 |     // This is strictly optional.
  16 |     this.registerListeners({

  at new NodeEnvironment (../node_modules/jest-environment-node/build/index.js:96:49)
  at new DetoxCircusEnvironment (../node_modules/detox/runners/jest-circus/environment.js:27:5)
  at CustomDetoxEnvironment._createSuperInternal (environment.js:13:311)
  at new CustomDetoxEnvironment (environment.js:31:20)
  at async TestScheduler.scheduleTests (../node_modules/@jest/core/build/TestScheduler.js:333:13)
  at async runJest (../node_modules/@jest/core/build/runJest.js:404:19)

14:09:34.503 detox[115576] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' --maxWorkers 1 e2e

Any ideas on how to fix this? I've tried updating jest, jest-expo, and jest-environment, as well as detox itself.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Hey, having similar issues have you found the cause of the issue or is it still occurring ?

about 4 years ago · Khush Patel Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!