You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems you now have to specify the configuration manually (e.g. detox test -c ios.sim.debug), otherwise detox test crashes.
Description
After upgrading to detox 7.3.X, detox test fails with the following error:
/Users/askielboe/rntest/MyProject/node_modules/detox/local-cli/detox-test.js:37
const platform = (config.configurations[program.configuration].type).split('.')[0];
^
TypeError: Cannot read property 'type' of undefined
at Object.<anonymous> (/Users/askielboe/rntest/MyProject/node_modules/detox/local-cli/detox-test.js:37:64)
at Module._compile (module.js:649:30)
at Object.Module._extensions..js (module.js:660:10)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:501:12)
at Function.Module._load (module.js:493:3)
at Function.Module.runMain (module.js:690:10)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:666:3
It seems that program.configuration is undefined (unsurprisingly?). Setting the configuration using detox test -c ios.sim.debug makes detox test work again.
Steps to Reproduce
react-native init MyProject
Build using Xcode
yarn global add detox-cli
yarn add detox --dev
yarn add mocha --dev
Add detox config from Getting Started to package.json, replacing "example" with "MyProject"
detox init
detox build
detox test
Detox, Node, Device, Xcode and macOS Versions
Detox: 7.3.2
React Native: 0.54.3
Node: 9.8.0
Device: iPhone 7
Xcode: 9.2 (9C40b)
macOS: 10.13.3 (17D102)
Device and verbose Detox logs
See error log above.
The text was updated successfully, but these errors were encountered:
Thanks for reporting, this is indeed an issue caused by #639.
A workaround for this (till we publish a fix) would be to explicitly select a configuration: detox test -c myConfiguration
rotemmiz
changed the title
detox test fails because program.configuration is undefined
CLI: detox test fails to determine a default configuration
Mar 28, 2018
Seems you now have to specify the configuration manually (e.g.
detox test -c ios.sim.debug
), otherwisedetox test
crashes.Description
After upgrading to detox 7.3.X,
detox test
fails with the following error:It seems that
program.configuration
is undefined (unsurprisingly?). Setting the configuration usingdetox test -c ios.sim.debug
makesdetox test
work again.Steps to Reproduce
react-native init MyProject
yarn global add detox-cli
yarn add detox --dev
yarn add mocha --dev
package.json
, replacing "example" with "MyProject"detox init
detox build
detox test
Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
See error log above.
The text was updated successfully, but these errors were encountered: