-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Enable passing of a custom userDataDir to launcher #2357
Conversation
1f0d10f
to
e5d597b
Compare
CI failure is just due to flake. |
✅ Confirmed it works via adding a doesn't delete if passed a custom path. clears the profile if we generated. Nice! |
Tests? wdyt |
would be nice to test this on appveyor 😄 |
e5d597b
to
dac6532
Compare
Added some simple tests @paulirish. To test the destroy tmp, I am going to have to do some more heavy handed refactors, let me know what you think so far before I keep going. |
We discussed offline:
|
f65eb0b
to
ad404e0
Compare
chrome-launcher/package.json
Outdated
@@ -5,16 +5,19 @@ | |||
"scripts": { | |||
"build": "tsc", | |||
"dev": "tsc -w", | |||
"test": "mocha --reporter dot test/**/*-test.js", | |||
"test": "mocha -r ts-node/register --reporter dot test/**/*-test.ts", |
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.
expand to --require
* rename TMP_DIR to a more accurate name. Since this is a private internal value, this is non-breaking. Fixes #2291
* Refactor code bits to make testable. * Add the ability for a user to pass in module mocks to enable testing.
ad404e0
to
98110d8
Compare
chrome-launcher/package.json
Outdated
@@ -5,16 +5,19 @@ | |||
"scripts": { | |||
"build": "tsc", | |||
"dev": "tsc -w", | |||
"test": "mocha --reporter dot test/**/*-test.js", | |||
"tests": "mocha -r ts-node/register --reporter dot test/**/*-test.ts", |
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.
why remove yarn test
? Would prefer to continue the convention..
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.
tests
-> test
. here and in run_mocha
chrome-launcher/package.json
Outdated
@@ -5,16 +5,19 @@ | |||
"scripts": { | |||
"build": "tsc", | |||
"dev": "tsc -w", | |||
"test": "mocha --reporter dot test/**/*-test.js", | |||
"tests": "mocha -r ts-node/register --reporter dot test/**/*-test.ts", |
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.
can you use --require
instead of -r
?
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.
lgtm % last comments.
98110d8
to
a05e85d
Compare
updated |
Thanks everyone for the reviews |
internal value, this is non-breaking.
Fixes #2291
Ref #2092