Skip to content

Commit 15a237e

Browse files
renovate[bot]gr2m
andauthored
chore(deps): update jest monorepo to v29 (major) (#82)
Co-authored-by: Gregor Martynus <[email protected]>
1 parent 486bfff commit 15a237e

12 files changed

+808
-887
lines changed

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
"@pika/plugin-build-node": "^0.9.2",
3333
"@pika/plugin-ts-standard-pkg": "^0.9.2",
3434
"@types/btoa-lite": "^1.0.0",
35-
"@types/jest": "^28.0.0",
35+
"@types/jest": "^29.0.0",
3636
"@types/node": "^16.0.0",
3737
"fetch-mock": "^9.11.0",
38-
"jest": "^28.0.0",
38+
"jest": "^29.0.0",
3939
"prettier": "2.7.1",
4040
"semantic-release": "^19.0.0",
4141
"semantic-release-plugin-update-version-in-files": "^1.1.0",
42-
"ts-jest": "^28.0.0",
42+
"ts-jest": "^29.0.0",
4343
"typescript": "^4.2.3"
4444
},
4545
"peerDependencies": {},

test/check-token.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ describe("checkToken()", () => {
3939
});
4040

4141
expect(data).toMatchInlineSnapshot(`
42-
Object {
43-
"scopes": Array [
42+
{
43+
"scopes": [
4444
"repo",
4545
],
4646
}
4747
`);
4848
expect(authentication).toMatchInlineSnapshot(`
49-
Object {
49+
{
5050
"clientId": "1234567890abcdef1234",
5151
"clientSecret": "1234567890abcdef12347890abcdef12345678",
5252
"clientType": "oauth-app",
53-
"scopes": Array [
53+
"scopes": [
5454
"repo",
5555
],
5656
"token": "token123",
@@ -95,13 +95,13 @@ describe("checkToken()", () => {
9595
});
9696

9797
expect(data).toMatchInlineSnapshot(`
98-
Object {
98+
{
9999
"expires_at": "2021-10-06T17:26:27Z",
100-
"scopes": Array [],
100+
"scopes": [],
101101
}
102102
`);
103103
expect(authentication).toMatchInlineSnapshot(`
104-
Object {
104+
{
105105
"clientId": "lv1.1234567890abcdef",
106106
"clientSecret": "1234567890abcdef12347890abcdef12345678",
107107
"clientType": "github-app",

test/create-device-code.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe("createDeviceCode()", () => {
4141
});
4242

4343
expect(data).toMatchInlineSnapshot(`
44-
Object {
44+
{
4545
"device_code": "devicecode123",
4646
"expires_in": 900,
4747
"interval": 5,
@@ -87,7 +87,7 @@ describe("createDeviceCode()", () => {
8787
});
8888

8989
expect(data).toMatchInlineSnapshot(`
90-
Object {
90+
{
9191
"device_code": "devicecode123",
9292
"expires_in": 900,
9393
"interval": 5,

test/delete-authorization.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ describe("deleteAuthorization()", () => {
3939
});
4040

4141
expect(response).toMatchInlineSnapshot(`
42-
Object {
42+
{
4343
"data": undefined,
44-
"headers": Object {},
44+
"headers": {},
4545
"status": 204,
4646
"url": "https://api.github.com/applications/1234567890abcdef1234/grant",
4747
}
@@ -85,12 +85,12 @@ describe("deleteAuthorization()", () => {
8585
});
8686

8787
expect(response).toMatchInlineSnapshot(`
88-
Object {
89-
"data": Object {
90-
"scopes": Array [],
88+
{
89+
"data": {
90+
"scopes": [],
9191
"token": "token456",
9292
},
93-
"headers": Object {
93+
"headers": {
9494
"content-length": "32",
9595
"content-type": "application/json",
9696
},

test/delete-token.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ describe("deleteToken()", () => {
3939
});
4040

4141
expect(response).toMatchInlineSnapshot(`
42-
Object {
42+
{
4343
"data": undefined,
44-
"headers": Object {},
44+
"headers": {},
4545
"status": 204,
4646
"url": "https://api.github.com/applications/1234567890abcdef1234/token",
4747
}
@@ -85,12 +85,12 @@ describe("deleteToken()", () => {
8585
});
8686

8787
expect(response).toMatchInlineSnapshot(`
88-
Object {
89-
"data": Object {
90-
"scopes": Array [],
88+
{
89+
"data": {
90+
"scopes": [],
9191
"token": "token456",
9292
},
93-
"headers": Object {
93+
"headers": {
9494
"content-length": "32",
9595
"content-type": "application/json",
9696
},

test/exchange-device-code.test.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ describe("exchangeDeviceCode()", () => {
4040
});
4141

4242
expect(data).toMatchInlineSnapshot(`
43-
Object {
43+
{
4444
"access_token": "secret123",
4545
"scope": "",
4646
"token_type": "bearer",
4747
}
4848
`);
4949
expect(authentication).toMatchInlineSnapshot(`
50-
Object {
50+
{
5151
"clientId": "1234567890abcdef1234",
5252
"clientType": "oauth-app",
53-
"scopes": Array [],
53+
"scopes": [],
5454
"token": "secret123",
5555
}
5656
`);
@@ -94,17 +94,17 @@ describe("exchangeDeviceCode()", () => {
9494
});
9595

9696
expect(data).toMatchInlineSnapshot(`
97-
Object {
97+
{
9898
"access_token": "secret123",
9999
"scope": "repo gist",
100100
"token_type": "bearer",
101101
}
102102
`);
103103
expect(authentication).toMatchInlineSnapshot(`
104-
Object {
104+
{
105105
"clientId": "1234567890abcdef1234",
106106
"clientType": "oauth-app",
107-
"scopes": Array [
107+
"scopes": [
108108
"repo",
109109
"gist",
110110
],
@@ -193,18 +193,18 @@ describe("exchangeDeviceCode()", () => {
193193
});
194194

195195
expect(data).toMatchInlineSnapshot(`
196-
Object {
196+
{
197197
"access_token": "secret123",
198198
"scope": "",
199199
"token_type": "bearer",
200200
}
201201
`);
202202
expect(authentication).toMatchInlineSnapshot(`
203-
Object {
203+
{
204204
"clientId": "1234567890abcdef1234",
205205
"clientSecret": "1234567890abcdef12347890abcdef12345678",
206206
"clientType": "oauth-app",
207-
"scopes": Array [],
207+
"scopes": [],
208208
"token": "secret123",
209209
}
210210
`);
@@ -247,14 +247,14 @@ describe("exchangeDeviceCode()", () => {
247247
});
248248

249249
expect(data).toMatchInlineSnapshot(`
250-
Object {
250+
{
251251
"access_token": "secret123",
252252
"scope": "",
253253
"token_type": "bearer",
254254
}
255255
`);
256256
expect(authentication).toMatchInlineSnapshot(`
257-
Object {
257+
{
258258
"clientId": "lv1.1234567890abcdef",
259259
"clientType": "github-app",
260260
"token": "secret123",
@@ -300,14 +300,14 @@ describe("exchangeDeviceCode()", () => {
300300
});
301301

302302
expect(data).toMatchInlineSnapshot(`
303-
Object {
303+
{
304304
"access_token": "secret123",
305305
"scope": "",
306306
"token_type": "bearer",
307307
}
308308
`);
309309
expect(authentication).toMatchInlineSnapshot(`
310-
Object {
310+
{
311311
"clientId": "lv1.1234567890abcdef",
312312
"clientSecret": "1234567890abcdef12347890abcdef12345678",
313313
"clientType": "github-app",
@@ -361,7 +361,7 @@ describe("exchangeDeviceCode()", () => {
361361
});
362362

363363
expect(data).toMatchInlineSnapshot(`
364-
Object {
364+
{
365365
"access_token": "secret123",
366366
"expires_in": 28800,
367367
"refresh_token": "r1.token123",
@@ -371,7 +371,7 @@ describe("exchangeDeviceCode()", () => {
371371
}
372372
`);
373373
expect(authentication).toMatchInlineSnapshot(`
374-
Object {
374+
{
375375
"clientId": "lv1.1234567890abcdef",
376376
"clientType": "github-app",
377377
"expiresAt": "1970-01-01T08:00:00.000Z",

test/exchange-web-flow-code.test.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ describe("exchangeWebFlowCode()", () => {
4141
});
4242

4343
expect(data).toMatchInlineSnapshot(`
44-
Object {
44+
{
4545
"access_token": "secret123",
4646
"scope": "",
4747
"token_type": "bearer",
4848
}
4949
`);
5050
expect(authentication).toMatchInlineSnapshot(`
51-
Object {
51+
{
5252
"clientId": "1234567890abcdef1234",
5353
"clientSecret": "1234567890abcdef12347890abcdef12345678",
5454
"clientType": "oauth-app",
55-
"scopes": Array [],
55+
"scopes": [],
5656
"token": "secret123",
5757
}
5858
`);
@@ -96,18 +96,18 @@ describe("exchangeWebFlowCode()", () => {
9696
});
9797

9898
expect(data).toMatchInlineSnapshot(`
99-
Object {
99+
{
100100
"access_token": "secret123",
101101
"scope": "repo gist",
102102
"token_type": "bearer",
103103
}
104104
`);
105105
expect(authentication).toMatchInlineSnapshot(`
106-
Object {
106+
{
107107
"clientId": "1234567890abcdef1234",
108108
"clientSecret": "1234567890abcdef12347890abcdef12345678",
109109
"clientType": "oauth-app",
110-
"scopes": Array [
110+
"scopes": [
111111
"repo",
112112
"gist",
113113
],
@@ -157,18 +157,18 @@ describe("exchangeWebFlowCode()", () => {
157157
});
158158

159159
expect(data).toMatchInlineSnapshot(`
160-
Object {
160+
{
161161
"access_token": "secret123",
162162
"scope": "",
163163
"token_type": "bearer",
164164
}
165165
`);
166166
expect(authentication).toMatchInlineSnapshot(`
167-
Object {
167+
{
168168
"clientId": "1234567890abcdef1234",
169169
"clientSecret": "1234567890abcdef12347890abcdef12345678",
170170
"clientType": "oauth-app",
171-
"scopes": Array [],
171+
"scopes": [],
172172
"token": "secret123",
173173
}
174174
`);
@@ -215,14 +215,14 @@ describe("exchangeWebFlowCode()", () => {
215215
});
216216

217217
expect(data).toMatchInlineSnapshot(`
218-
Object {
218+
{
219219
"access_token": "secret123",
220220
"scope": "",
221221
"token_type": "bearer",
222222
}
223223
`);
224224
expect(authentication).toMatchInlineSnapshot(`
225-
Object {
225+
{
226226
"clientId": "lv1.1234567890abcdef",
227227
"clientSecret": "1234567890abcdef12347890abcdef12345678",
228228
"clientType": "github-app",
@@ -278,7 +278,7 @@ describe("exchangeWebFlowCode()", () => {
278278
});
279279

280280
expect(data).toMatchInlineSnapshot(`
281-
Object {
281+
{
282282
"access_token": "secret123",
283283
"expires_in": 28800,
284284
"refresh_token": "r1.token123",
@@ -288,7 +288,7 @@ describe("exchangeWebFlowCode()", () => {
288288
}
289289
`);
290290
expect(authentication).toMatchInlineSnapshot(`
291-
Object {
291+
{
292292
"clientId": "lv1.1234567890abcdef",
293293
"clientSecret": "1234567890abcdef12347890abcdef12345678",
294294
"clientType": "github-app",

0 commit comments

Comments
 (0)