Skip to content

Commit 6e899c3

Browse files
committed
chore: updated the jest snapshot format to current version
1 parent 9091ea5 commit 6e899c3

5 files changed

Lines changed: 70 additions & 75 deletions

File tree

jest.config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,4 @@ module.exports = {
2121
'!jest.config.js',
2222
'!wallaby.js',
2323
],
24-
25-
snapshotFormat: {
26-
escapeString: true,
27-
printBasicPrototype: true,
28-
},
2924
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`ignoredUsers getIgnoredUsers empty 1`] = `Array []`;
3+
exports[`ignoredUsers getIgnoredUsers empty 1`] = `[]`;
44

55
exports[`ignoredUsers getIgnoredUsers many 1`] = `
6-
Array [
6+
[
77
"user1",
88
"user2",
99
"user3",
@@ -12,7 +12,7 @@ Array [
1212
`;
1313

1414
exports[`ignoredUsers getIgnoredUsers single 1`] = `
15-
Array [
15+
[
1616
"user1",
1717
]
1818
`;

tests/__snapshots__/github.spec.ts.snap

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
exports[`github integration addUserToGitHubOrg 1`] = `
44
[MockFunction] {
5-
"calls": Array [
6-
Array [
7-
Object {
5+
"calls": [
6+
[
7+
{
88
"invitee_id": 123,
99
"org": "myorg",
1010
},
1111
],
1212
],
13-
"results": Array [
14-
Object {
13+
"results": [
14+
{
1515
"type": "return",
1616
"value": Promise {},
1717
},
@@ -21,20 +21,20 @@ exports[`github integration addUserToGitHubOrg 1`] = `
2121

2222
exports[`github integration addUsersToGitHubOrg 1`] = `
2323
[MockFunction] {
24-
"calls": Array [
25-
Array [
24+
"calls": [
25+
[
2626
"foo",
2727
],
28-
Array [
28+
[
2929
"bar",
3030
],
3131
],
32-
"results": Array [
33-
Object {
32+
"results": [
33+
{
3434
"type": "return",
3535
"value": Promise {},
3636
},
37-
Object {
37+
{
3838
"type": "return",
3939
"value": Promise {},
4040
},
@@ -44,10 +44,10 @@ exports[`github integration addUsersToGitHubOrg 1`] = `
4444

4545
exports[`github integration getAuthenticatedOctokit 1`] = `
4646
[MockFunction] {
47-
"calls": Array [
48-
Array [
49-
Object {
50-
"auth": Object {
47+
"calls": [
48+
[
49+
{
50+
"auth": {
5151
"appId": 123,
5252
"installationId": 123,
5353
"privateKey": "helloworld",
@@ -56,8 +56,8 @@ exports[`github integration getAuthenticatedOctokit 1`] = `
5656
},
5757
],
5858
],
59-
"results": Array [
60-
Object {
59+
"results": [
60+
{
6161
"type": "return",
6262
"value": undefined,
6363
},
@@ -81,16 +81,16 @@ exports[`github integration getUserIdFromUsername notfound 1`] = `"Unable to fin
8181

8282
exports[`github integration removeUserFromGitHubOrg 1`] = `
8383
[MockFunction] {
84-
"calls": Array [
85-
Array [
86-
Object {
84+
"calls": [
85+
[
86+
{
8787
"org": "myorg",
8888
"username": "foo",
8989
},
9090
],
9191
],
92-
"results": Array [
93-
Object {
92+
"results": [
93+
{
9494
"type": "return",
9595
"value": Promise {},
9696
},
@@ -100,20 +100,20 @@ exports[`github integration removeUserFromGitHubOrg 1`] = `
100100

101101
exports[`github integration removeUsersFromGitHubOrg 1`] = `
102102
[MockFunction] {
103-
"calls": Array [
104-
Array [
103+
"calls": [
104+
[
105105
"foo",
106106
],
107-
Array [
107+
[
108108
"bar",
109109
],
110110
],
111-
"results": Array [
112-
Object {
111+
"results": [
112+
{
113113
"type": "return",
114114
"value": Promise {},
115115
},
116-
Object {
116+
{
117117
"type": "return",
118118
"value": Promise {},
119119
},

tests/__snapshots__/google.spec.ts.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ Set {
2626

2727
exports[`google integration googleAuth 1`] = `
2828
[MockFunction] {
29-
"calls": Array [
30-
Array [
29+
"calls": [
30+
[
3131
"foo",
3232
null,
3333
"bar",
34-
Array [
34+
[
3535
"https://www.googleapis.com/auth/admin.directory.user.readonly",
3636
],
3737
"hello@example.com",
3838
],
3939
],
40-
"results": Array [
41-
Object {
40+
"results": [
41+
{
4242
"type": "return",
4343
"value": undefined,
4444
},

tests/__snapshots__/index.spec.ts.snap

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
exports[`match should have consistent console output 1`] = `
44
[MockFunction] {
5-
"calls": Array [
6-
Array [
5+
"calls": [
6+
[
77
"Users from google: a, b, c, d",
88
],
9-
Array [
9+
[
1010
"Users from github: a, b, c, d",
1111
],
1212
],
13-
"results": Array [
14-
Object {
13+
"results": [
14+
{
1515
"type": "return",
1616
"value": undefined,
1717
},
18-
Object {
18+
{
1919
"type": "return",
2020
"value": undefined,
2121
},
@@ -25,15 +25,15 @@ exports[`match should have consistent console output 1`] = `
2525

2626
exports[`missmatch should add users if set to 1`] = `
2727
[MockFunction] {
28-
"calls": Array [
29-
Array [
28+
"calls": [
29+
[
3030
Set {
3131
"d",
3232
},
3333
],
3434
],
35-
"results": Array [
36-
Object {
35+
"results": [
36+
{
3737
"type": "return",
3838
"value": undefined,
3939
},
@@ -43,34 +43,34 @@ exports[`missmatch should add users if set to 1`] = `
4343

4444
exports[`missmatch should have consistent console output 1`] = `
4545
[MockFunction] {
46-
"calls": Array [
47-
Array [
46+
"calls": [
47+
[
4848
"Users from google: a, d",
4949
],
50-
Array [
50+
[
5151
"Users from github: b, c, a",
5252
],
53-
Array [
53+
[
5454
"Users not in google: b, c",
5555
],
56-
Array [
56+
[
5757
"Users not in github: d",
5858
],
5959
],
60-
"results": Array [
61-
Object {
60+
"results": [
61+
{
6262
"type": "return",
6363
"value": undefined,
6464
},
65-
Object {
65+
{
6666
"type": "return",
6767
"value": undefined,
6868
},
69-
Object {
69+
{
7070
"type": "return",
7171
"value": undefined,
7272
},
73-
Object {
73+
{
7474
"type": "return",
7575
"value": undefined,
7676
},
@@ -80,34 +80,34 @@ exports[`missmatch should have consistent console output 1`] = `
8080

8181
exports[`missmatch should have consistent console output with full destructive mode on 1`] = `
8282
[MockFunction] {
83-
"calls": Array [
84-
Array [
83+
"calls": [
84+
[
8585
"Users from google: a, d",
8686
],
87-
Array [
87+
[
8888
"Users from github: b, c, a",
8989
],
90-
Array [
90+
[
9191
"Users not in google: b, c",
9292
],
93-
Array [
93+
[
9494
"Users not in github: d",
9595
],
9696
],
97-
"results": Array [
98-
Object {
97+
"results": [
98+
{
9999
"type": "return",
100100
"value": undefined,
101101
},
102-
Object {
102+
{
103103
"type": "return",
104104
"value": undefined,
105105
},
106-
Object {
106+
{
107107
"type": "return",
108108
"value": undefined,
109109
},
110-
Object {
110+
{
111111
"type": "return",
112112
"value": undefined,
113113
},
@@ -117,16 +117,16 @@ exports[`missmatch should have consistent console output with full destructive m
117117

118118
exports[`missmatch should remove users if set to 1`] = `
119119
[MockFunction] {
120-
"calls": Array [
121-
Array [
120+
"calls": [
121+
[
122122
Set {
123123
"b",
124124
"c",
125125
},
126126
],
127127
],
128-
"results": Array [
129-
Object {
128+
"results": [
129+
{
130130
"type": "return",
131131
"value": undefined,
132132
},

0 commit comments

Comments
 (0)