Skip to content
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

Merged
merged 4 commits into from
Jan 1, 2019
Merged

Accept a promise as config #178

merged 4 commits into from
Jan 1, 2019

Conversation

dbartholomae
Copy link
Contributor

Summary

This solves #176

Test plan

The change was implemented in TDD.

Copy link
Member

@gregberge gregberge left a 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
Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@gregberge gregberge merged commit 40bc3a2 into argos-ci:master Jan 1, 2019
@gregberge
Copy link
Member

Thanks again for your work, it will be released soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants