-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Jest-related docs #355
Conversation
docs/Guide.Jest.md
Outdated
@@ -46,13 +46,15 @@ Add this part to your `package.json`: | |||
"setupTestFrameworkScriptFile": "./e2e/init.js" | |||
}, | |||
"scripts": { | |||
"test:e2e": "detox test", | |||
"test:e2e": "detox test -c ios.sim.debug -a e2e", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-a sets artifacts output location, what did you mean by that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for some reason, if you don't specify anything, _getAbsolutePath
tries to create artifacts folder under undefined/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That’s a different issue then, but we certainly don’t want them in our e2e tests library (or anywhere for that matter, it’s unrelated to this part of the docs). Let’s open an issue to fix that ASAP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is related to process.cwd()
in child process. I'll follow up on this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rotemmiz ok, it seems to happen only if I use xcode
config (to debug using xcode), because binaryPath
is not specified. Should I make an exception here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I follow why _getAbsolutePath
is needed in that case, but I'll take a look in the code later.
I still think the issue you're trying to debug is out of the scope of this PR, so we can change the docs, and open a new issue with that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for miscommunication. process.cwd()
has nothing to do with the issue. Yeah, I can remove artifacts part as far as it is only related to xcode
debug configuration. I'll follow up on this in separated issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job 👍
@rotemmiz I updated this PR by removing |
Should we merge it in? |
Still trying to figure out why e2e fails on Xcode 8.3.3, re ran the build, see you on the other side. |
Scope of changes:
jest
todetox --help
command