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.
Hey, having similar issues have you found the cause of the issue or is it still occurring ?