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
| "build": "tsc", | ||
| "dev": "tsc -w", | ||
| "test": "mocha --reporter dot test/**/*-test.js", | ||
| "test": "mocha -r ts-node/register --reporter dot test/**/*-test.ts", |
* 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
| "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.
why remove yarn test ? Would prefer to continue the convention..
There was a problem hiding this comment.
tests -> test. here and in run_mocha
chrome-launcher/package.json
Outdated
| "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.
can you use --require instead of -r ?
98110d8 to
a05e85d
Compare
|
updated |
|
Thanks everyone for the reviews |
internal value, this is non-breaking.
Fixes #2291
Ref #2092