Skip to content

Commit

Permalink
test: restore 100% coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Oct 3, 2024
1 parent 23f6ebe commit 00acdf2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async function sendRequestWithRetries(
): Promise<AnyResponse> {
const timeSinceTokenCreationInMs = +new Date() - +new Date(createdAt);

/* v8 ignore next - due to skipped tests, see https://github.com/octokit/auth-app.js/pull/580 */
/* v8 ignore start - due to skipped tests, see https://github.com/octokit/auth-app.js/pull/580 */
try {
return await request(options);
} catch (error: any) {
Expand Down Expand Up @@ -150,4 +150,5 @@ async function sendRequestWithRetries(

return sendRequestWithRetries(state, request, options, createdAt, retries);
}
/* v8 ignore end */
}
6 changes: 3 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as OctokitTypes from "@octokit/types";
import { LRUCache } from "lru-cache";
import * as OAuthAppAuth from "@octokit/auth-oauth-app";
import type * as OctokitTypes from "@octokit/types";
import type { LRUCache } from "lru-cache";
import type * as OAuthAppAuth from "@octokit/auth-oauth-app";

// STRATEGY OPTIONS

Expand Down
5 changes: 1 addition & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ export default defineConfig({
include: ["src/**/*.ts"],
reporter: ["html"],
thresholds: {
lines: 69.23,
functions: 93.33,
statements: 69.23,
branches: 96.15,
100: true
},
},
},
Expand Down

0 comments on commit 00acdf2

Please sign in to comment.