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

chore: introduce //lib/api.js #3835

Merged
merged 3 commits into from Jan 26, 2019

Conversation

aslushnikov
Copy link
Contributor

Introduce //lib/api.js that declares a list of publicly exposed
classes.

The //lib/api.js list superceedes dynamic helper.tracePublicAPI() calls
and is used in the following places:

  • [ASYNC STACKS]: generate "async stacks" for publicy exposed API in //index.js
  • [COVERAGE]: move coverage support from //lib/helper to //test/utils
  • [DOCLINT]: get rid of 'exluded classes' hardcoded list

This will help us to re-use our coverage and doclint infrastructure
for Puppeteer-Firefox.

Drive-By: it turns out we didn't run coverage for SecurityDetails
class, so we lack coverage for a few methods there. These are excluded
for now, sanity tests will be added in a follow-up.

Introduce `//lib/api.js` that declares a list of publicly exposed
classes.

The `//lib/api.js` list superceedes dynamic `helper.tracePublicAPI()` calls
and is used in the following places:
- [ASYNC STACKS]: generate "async stacks" for publicy exposed API in `//index.js`
- [COVERAGE]: move coverage support from `//lib/helper` to `//test/utils`
- [DOCLINT]: get rid of 'exluded classes' hardcoded list

This will help us to re-use our coverage and doclint infrastructure
for Puppeteer-Firefox.

Drive-By: it turns out we didn't run coverage for `SecurityDetails`
class, so we lack coverage for a few methods there. These are excluded
for now, sanity tests will be added in a follow-up.
@aslushnikov aslushnikov merged commit 62da236 into puppeteer:master Jan 26, 2019
@aslushnikov aslushnikov deleted the introduce-public-api branch January 26, 2019 04:21
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.

None yet

2 participants