-
Notifications
You must be signed in to change notification settings - Fork 289
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
Accept a promise as config #178
Accept a promise as config #178
Conversation
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.
Thanks for your work, it is good for me, just make the example more explicit please!
@@ -113,19 +113,22 @@ This example uses an already running instance of Chrome by passing the active we | |||
|
|||
```js | |||
// jest-puppeteer.config.js | |||
const wsEndpoint = fs.readFileSync(endpointPath, 'utf8') | |||
const PromiseForConfig = PromiseForWsEndpoint |
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.
Your example is not enought explicit. Can you please make it more explicit? I mean PromiseForWsEndpoint
should be defined. Also no first uppercase for promises please, they are not classes.
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 replaced the example with a new one based on the actual code I use in my project
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.
Thanks!
Thanks again for your work, it will be released soon! |
Summary
This solves #176
Test plan
The change was implemented in TDD.