Skip to content

Commit cf59f4c

Browse files
chore(deps): update vitest monorepo to v4 (major) (#321)
* chore(deps): update vitest monorepo to v4 * update ignore comments --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: wolfy1339 <webmaster@wolfy1339.com>
1 parent b80c724 commit cf59f4c

11 files changed

+113
-275
lines changed

package-lock.json

Lines changed: 102 additions & 255 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
"devDependencies": {
3030
"@octokit/tsconfig": "^4.0.0",
3131
"@types/node": "^24.0.0",
32-
"@vitest/coverage-v8": "^3.0.0",
32+
"@vitest/coverage-v8": "^4.0.0",
3333
"esbuild": "^0.25.0",
3434
"fetch-mock": "^11.0.0",
3535
"prettier": "3.6.2",
3636
"semantic-release-plugin-update-version-in-files": "^2.0.0",
3737
"tinyglobby": "^0.2.15",
3838
"typescript": "^5.0.0",
39-
"vitest": "^3.0.0"
39+
"vitest": "^4.0.0"
4040
},
4141
"release": {
4242
"plugins": [

src/check-token.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ export async function checkToken(
4343
export async function checkToken(
4444
options: CheckTokenOAuthAppOptions | CheckTokenGitHubAppOptions,
4545
): Promise<any> {
46-
/* v8 ignore start: we always pass a custom request in tests */
46+
/* v8 ignore next: we always pass a custom request in tests -- @preserve */
4747
const request = options.request || defaultRequest;
48-
/* v8 ignore stop */
4948

5049
const response = await request("POST /applications/{client_id}/token", {
5150
headers: {

src/create-device-code.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ export type CreateDeviceCodeDeviceTokenResponse = OctokitResponse<{
2626
export async function createDeviceCode(
2727
options: CreateDeviceCodeOAuthAppOptions | CreateDeviceCodeGitHubAppOptions,
2828
): Promise<CreateDeviceCodeDeviceTokenResponse> {
29-
/* v8 ignore start: we always pass a custom request in tests */
29+
/* v8 ignore next: we always pass a custom request in tests -- @preserve */
3030
const request = options.request || defaultRequest;
31-
/* v8 ignore stop */
3231

3332
const parameters: Record<string, unknown> = {
3433
client_id: options.clientId,

src/delete-authorization.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ export async function deleteAuthorization(
3030
| DeleteAuthorizationOAuthAppOptions
3131
| DeleteAuthorizationGitHubAppOptions,
3232
): Promise<any> {
33-
/* v8 ignore start: we always pass a custom request in tests */
33+
/* v8 ignore next: we always pass a custom request in tests -- @preserve */
3434
const request = options.request || defaultRequest;
35-
/* v8 ignore stop */
3635

3736
const auth = btoa(`${options.clientId}:${options.clientSecret}`);
3837
return request(

src/delete-token.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ export async function deleteToken(
2929
export async function deleteToken(
3030
options: DeleteTokenOAuthAppOptions | DeleteTokenGitHubAppOptions,
3131
): Promise<any> {
32-
/* v8 ignore start: we always pass a custom request in tests */
32+
/* v8 ignore next: we always pass a custom request in tests -- @preserve */
3333
const request = options.request || defaultRequest;
34-
/* v8 ignore stop */
3534

3635
const auth = btoa(`${options.clientId}:${options.clientSecret}`);
3736
return request(

src/exchange-device-code.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ export async function exchangeDeviceCode(
118118
| ExchangeDeviceCodeOAuthAppOptionsWithoutClientSecret
119119
| ExchangeDeviceCodeGitHubAppOptionsWithoutClientSecret,
120120
): Promise<any> {
121-
/* v8 ignore start: we always pass a custom request in tests */
121+
/* v8 ignore next: we always pass a custom request in tests -- @preserve */
122122
const request = options.request || defaultRequest;
123-
/* v8 ignore stop */
124123

125124
const response = await oauthRequest(
126125
request,

src/exchange-web-flow-code.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ export async function exchangeWebFlowCode(
6262
| ExchangeWebFlowCodeOAuthAppOptions
6363
| ExchangeWebFlowCodeGitHubAppOptions,
6464
): Promise<any> {
65-
/* v8 ignore start: we always pass a custom request in tests */
65+
/* v8 ignore next: we always pass a custom request in tests -- @preserve */
6666
const request = options.request || defaultRequest;
67-
/* v8 ignore stop */
6867

6968
const response = await oauthRequest(
7069
request,

src/refresh-token.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ export type RefreshTokenResponse =
2323
export async function refreshToken(
2424
options: RefreshTokenOptions,
2525
): Promise<RefreshTokenResponse> {
26-
/* v8 ignore start: we always pass a custom request in tests */
26+
/* v8 ignore next: we always pass a custom request in tests -- @preserve */
2727
const request = options.request || defaultRequest;
28-
/* v8 ignore stop */
2928

3029
const response = await oauthRequest(
3130
request,

src/reset-token.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ export async function resetToken(
4343
export async function resetToken(
4444
options: ResetTokenOAuthAppOptions | ResetTokenGitHubAppOptions,
4545
): Promise<any> {
46-
/* v8 ignore start: we always pass a custom request in tests */
46+
/* v8 ignore next: we always pass a custom request in tests -- @preserve */
4747
const request = options.request || defaultRequest;
48-
/* v8 ignore stop */
4948

5049
const auth = btoa(`${options.clientId}:${options.clientSecret}`);
5150
const response = await request(

0 commit comments

Comments
 (0)