Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

api documentation tests #58

Merged
merged 2 commits into from
Mar 9, 2017
Merged

api documentation tests #58

merged 2 commits into from
Mar 9, 2017

Conversation

zkat
Copy link
Owner

@zkat zkat commented Mar 9, 2017

This makes sure that all toplevel api functions have a corresponding entry in README.md. It's a pretty basic test for now, but can be expanded later.

# Subtest: all toplevel api calls are documented
    # [ 'extract', 'manifest', 'prefetch' ]
    ok 1 - pacote.extract has a docs entry
    ok 2 - pacote.manifest has a docs entry
    ok 3 - pacote.prefetch has a docs entry
    1..3
ok 2 - all toplevel api calls are documented # time=146.214ms

@zkat zkat added this to the 1.0.0 milestone Mar 9, 2017
@zkat zkat requested a review from varjmes March 9, 2017 10:10
@zkat
Copy link
Owner Author

zkat commented Mar 9, 2017

It makes literally no sense to me that this dropped code coverage lol

@zkat zkat merged commit 7142eb4 into latest Mar 9, 2017
@zkat zkat deleted the zkat/doctests branch March 9, 2017 18:54
strugee pushed a commit to strugee/pacote that referenced this pull request Mar 9, 2021
This allows us to avoid hitting the registry repeatedly to get the same
packument multiple times when we are resolving many different specifiers
for the same package name.

Even though these requests are cached after the first hit, just pinging
the registry with an ETag and getting a 304 response still adds up to
quite a bit of time waiting on network requests to complete.

PR-URL: npm/pacote#58
Credit: @isaacs
Close: zkat#58
Reviewed-by: @wraithgar
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant