Skip to content

Commit 768e21c

Browse files
committed
update jest snapshots to new format + install missing jest-stare
1 parent 7ddedfc commit 768e21c

18 files changed

+220
-49
lines changed

achievements/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"eslint-config-prettier": "^9.1.0",
2727
"eslint-plugin-prettier": "^5.2.1",
2828
"jest": "^29.7.0",
29+
"jest-stare": "^2.5.2",
2930
"rimraf": "^6.0.1",
3031
"ts-jest": "^29.2.5",
3132
"ts-loader": "^9.5.1",

achievements/src/__snapshots__/cutting-edges.achievement.spec.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`Cutting Edges achievement should be granted if pull request was merged without approvals 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/cuttingEdges.achievement.jpg",
66
"description": "You've merged a pull request without a reviewer confirming",
77
"name": "Cutting Edges",

achievements/src/__snapshots__/dont-yell-at-me.achievement.spec.ts.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`dontYellAtMe achievement should be granted to PR creator if both reasons 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/dontYellAtMe.achievement.jpg",
66
"description": "You've used ALL CAPS and 3 or more exclamation marks in your Pull Request title",
77
"name": "Don't Yell At Me!!!",
@@ -11,7 +11,7 @@ Object {
1111
`;
1212

1313
exports[`dontYellAtMe achievement should be granted to PR creator if more than 2 '!' 1`] = `
14-
Object {
14+
{
1515
"avatar": "images/achievements/dontYellAtMe.achievement.jpg",
1616
"description": "You've used 3 or more exclamation marks in your Pull Request title",
1717
"name": "Don't Yell At Me!!!",
@@ -21,7 +21,7 @@ Object {
2121
`;
2222

2323
exports[`dontYellAtMe achievement should be granted to PR creator if title is all caps 1`] = `
24-
Object {
24+
{
2525
"avatar": "images/achievements/dontYellAtMe.achievement.jpg",
2626
"description": "You've used ALL CAPS in your Pull Request title",
2727
"name": "Don't Yell At Me!!!",

achievements/src/__snapshots__/double-review.achievement.spec.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`doubleReview achievement should be granted if 2 reviewers excluding creator 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/doubleReview.achievement.gif",
66
"description": "double headed code review.<br>It doesn't matter who added you, apparently, both of you are needed for a one man job 😇",
77
"name": "We're ready, master",
@@ -11,7 +11,7 @@ Object {
1111
`;
1212

1313
exports[`doubleReview achievement should be granted if 2 reviewers excluding creator 2`] = `
14-
Object {
14+
{
1515
"avatar": "images/achievements/doubleReview.achievement.gif",
1616
"description": "double headed code review.<br>It doesn't matter who added you, apparently, both of you are needed for a one man job 😇",
1717
"name": "We're ready, master",

achievements/src/__snapshots__/dr-claw.achievement.spec.ts.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`drClaw achievement should be granted to PR creator if coverage decreased by 2+ 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/drClaw.achievement.gif",
66
"description": "You've decreased a project coverage by -6.2%",
77
"name": "Dr. Claw",
@@ -11,7 +11,7 @@ Object {
1111
`;
1212

1313
exports[`drClaw achievement should parse only last coverall comment 1`] = `
14-
Object {
14+
{
1515
"avatar": "images/achievements/drClaw.achievement.gif",
1616
"description": "You've decreased a project coverage by -6.2%",
1717
"name": "Dr. Claw",
@@ -21,7 +21,7 @@ Object {
2121
`;
2222

2323
exports[`drClaw achievement should write in description last decreased percentage 1`] = `
24-
Object {
24+
{
2525
"avatar": "images/achievements/drClaw.achievement.gif",
2626
"description": "You've decreased a project coverage by -10.6%",
2727
"name": "Dr. Claw",
@@ -31,7 +31,7 @@ Object {
3131
`;
3232

3333
exports[`drClaw achievement should write in description last decreased percentage 2`] = `
34-
Object {
34+
{
3535
"avatar": "images/achievements/drClaw.achievement.gif",
3636
"description": "You've decreased a project coverage by -6.2%",
3737
"name": "Dr. Claw",

achievements/src/__snapshots__/helping-hand.achievement.spec.ts.snap

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`helpingHand achievement should add indication if more than one PR reviewer 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/helpingHandManInBlack.achievement.jpg",
66
"description": "Your reviewers reviewer, 2nd committed to your Pull Request",
77
"name": "Helping Hand",
@@ -11,7 +11,7 @@ Object {
1111
`;
1212

1313
exports[`helpingHand achievement should add indication if more than one PR reviewer 2`] = `
14-
Object {
14+
{
1515
"avatar": "images/achievements/helpingHandHelloThere.achievement.jpg",
1616
"description": "You've committed to creator's Pull Request you are reviewing",
1717
"name": "Helping Hand",
@@ -21,7 +21,7 @@ Object {
2121
`;
2222

2323
exports[`helpingHand achievement should add indication if more than one PR reviewer 3`] = `
24-
Object {
24+
{
2525
"avatar": "images/achievements/helpingHandHelloThere.achievement.jpg",
2626
"description": "You've committed to creator's Pull Request you are reviewing",
2727
"name": "Helping Hand",
@@ -31,7 +31,7 @@ Object {
3131
`;
3232

3333
exports[`helpingHand achievement should be granted if PR reviewer added commit 1`] = `
34-
Object {
34+
{
3535
"avatar": "images/achievements/helpingHandManInBlack.achievement.jpg",
3636
"description": "Your reviewer reviewer committed to your Pull Request",
3737
"name": "Helping Hand",
@@ -41,7 +41,7 @@ Object {
4141
`;
4242

4343
exports[`helpingHand achievement should be granted if PR reviewer added commit 2`] = `
44-
Object {
44+
{
4545
"avatar": "images/achievements/helpingHandHelloThere.achievement.jpg",
4646
"description": "You've committed to creator's Pull Request you are reviewing",
4747
"name": "Helping Hand",

achievements/src/__snapshots__/inspector-gadget.achievement.spec.ts.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`inspectorGadget achievement should be granted to PR creator if coverage increased by 2+ 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/inspectorGadget.achievement.jpg",
66
"description": "You've increased a project coverage by +2.6%",
77
"name": "Inspector Gadget",
@@ -11,7 +11,7 @@ Object {
1111
`;
1212

1313
exports[`inspectorGadget achievement should parse only last coverall comment 1`] = `
14-
Object {
14+
{
1515
"avatar": "images/achievements/inspectorGadget.achievement.jpg",
1616
"description": "You've increased a project coverage by +2.6%",
1717
"name": "Inspector Gadget",
@@ -21,7 +21,7 @@ Object {
2121
`;
2222

2323
exports[`inspectorGadget achievement should write in description last increased percentage 1`] = `
24-
Object {
24+
{
2525
"avatar": "images/achievements/inspectorGadget.achievement.jpg",
2626
"description": "You've increased a project coverage by +10.6%",
2727
"name": "Inspector Gadget",
@@ -31,7 +31,7 @@ Object {
3131
`;
3232

3333
exports[`inspectorGadget achievement should write in description last increased percentage 2`] = `
34-
Object {
34+
{
3535
"avatar": "images/achievements/inspectorGadget.achievement.jpg",
3636
"description": "You've increased a project coverage by +2.6%",
3737
"name": "Inspector Gadget",

achievements/src/__snapshots__/label-baby-junior.achievement.spec.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`labelBabyJunior achievement should be granted to PR creator if more than 5 labels 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/labelBabyJunior.achievement.jpg",
66
"description": "You've put many labels, thank you for organizing. You're a gift that keeps on re-giving",
77
"name": "The Label Maker",

achievements/src/__snapshots__/meeseek.achievement.spec.ts.snap

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`meeseek achievement Github's resolve keywords should recognize "close" 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/meeseek.achievement.gif",
66
"description": "<p>Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?</p><p>Pull requests don't usually have to exist this long. It's getting weird.</p>",
77
"name": "I'm Mr. Meeseeks! Look at me!",
@@ -11,7 +11,7 @@ Object {
1111
`;
1212

1313
exports[`meeseek achievement Github's resolve keywords should recognize "closed" 1`] = `
14-
Object {
14+
{
1515
"avatar": "images/achievements/meeseek.achievement.gif",
1616
"description": "<p>Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?</p><p>Pull requests don't usually have to exist this long. It's getting weird.</p>",
1717
"name": "I'm Mr. Meeseeks! Look at me!",
@@ -21,7 +21,7 @@ Object {
2121
`;
2222

2323
exports[`meeseek achievement Github's resolve keywords should recognize "closes" 1`] = `
24-
Object {
24+
{
2525
"avatar": "images/achievements/meeseek.achievement.gif",
2626
"description": "<p>Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?</p><p>Pull requests don't usually have to exist this long. It's getting weird.</p>",
2727
"name": "I'm Mr. Meeseeks! Look at me!",
@@ -31,7 +31,7 @@ Object {
3131
`;
3232

3333
exports[`meeseek achievement Github's resolve keywords should recognize "fix" 1`] = `
34-
Object {
34+
{
3535
"avatar": "images/achievements/meeseek.achievement.gif",
3636
"description": "<p>Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?</p><p>Pull requests don't usually have to exist this long. It's getting weird.</p>",
3737
"name": "I'm Mr. Meeseeks! Look at me!",
@@ -41,7 +41,7 @@ Object {
4141
`;
4242

4343
exports[`meeseek achievement Github's resolve keywords should recognize "fixed" 1`] = `
44-
Object {
44+
{
4545
"avatar": "images/achievements/meeseek.achievement.gif",
4646
"description": "<p>Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?</p><p>Pull requests don't usually have to exist this long. It's getting weird.</p>",
4747
"name": "I'm Mr. Meeseeks! Look at me!",
@@ -51,7 +51,7 @@ Object {
5151
`;
5252

5353
exports[`meeseek achievement Github's resolve keywords should recognize "fixes" 1`] = `
54-
Object {
54+
{
5555
"avatar": "images/achievements/meeseek.achievement.gif",
5656
"description": "<p>Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?</p><p>Pull requests don't usually have to exist this long. It's getting weird.</p>",
5757
"name": "I'm Mr. Meeseeks! Look at me!",
@@ -61,7 +61,7 @@ Object {
6161
`;
6262

6363
exports[`meeseek achievement Github's resolve keywords should recognize "resolve" 1`] = `
64-
Object {
64+
{
6565
"avatar": "images/achievements/meeseek.achievement.gif",
6666
"description": "<p>Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?</p><p>Pull requests don't usually have to exist this long. It's getting weird.</p>",
6767
"name": "I'm Mr. Meeseeks! Look at me!",
@@ -71,7 +71,7 @@ Object {
7171
`;
7272

7373
exports[`meeseek achievement Github's resolve keywords should recognize "resolved" 1`] = `
74-
Object {
74+
{
7575
"avatar": "images/achievements/meeseek.achievement.gif",
7676
"description": "<p>Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?</p><p>Pull requests don't usually have to exist this long. It's getting weird.</p>",
7777
"name": "I'm Mr. Meeseeks! Look at me!",
@@ -81,7 +81,7 @@ Object {
8181
`;
8282

8383
exports[`meeseek achievement Github's resolve keywords should recognize "resolves" 1`] = `
84-
Object {
84+
{
8585
"avatar": "images/achievements/meeseek.achievement.gif",
8686
"description": "<p>Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?</p><p>Pull requests don't usually have to exist this long. It's getting weird.</p>",
8787
"name": "I'm Mr. Meeseeks! Look at me!",
@@ -91,7 +91,7 @@ Object {
9191
`;
9292

9393
exports[`meeseek achievement Github's resolve keywords should recognize a combination 1`] = `
94-
Object {
94+
{
9595
"avatar": "images/achievements/meeseek.achievement.gif",
9696
"description": "<p>Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?</p><p>Pull requests don't usually have to exist this long. It's getting weird.</p>",
9797
"name": "I'm Mr. Meeseeks! Look at me!",
@@ -101,7 +101,7 @@ Object {
101101
`;
102102

103103
exports[`meeseek achievement should be case insensitive 1`] = `
104-
Object {
104+
{
105105
"avatar": "images/achievements/meeseek.achievement.gif",
106106
"description": "<p>Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?</p><p>Pull requests don't usually have to exist this long. It's getting weird.</p>",
107107
"name": "I'm Mr. Meeseeks! Look at me!",
@@ -111,7 +111,7 @@ Object {
111111
`;
112112

113113
exports[`meeseek achievement should be granted to PR creator if 4 issues resolved 1`] = `
114-
Object {
114+
{
115115
"avatar": "images/achievements/meeseek.achievement.gif",
116116
"description": "<p>Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?</p><p>Pull requests don't usually have to exist this long. It's getting weird.</p>",
117117
"name": "I'm Mr. Meeseeks! Look at me!",

achievements/src/__snapshots__/member.achievement.spec.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`member achievement should be granted if PR opened more than 2 weeks ago 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/member.achievement.jpg",
66
"description": "A pull request you've created 2 weeks ago is finally merged",
77
"name": "Member pull request #undefined?",

achievements/src/__snapshots__/mr-miyagi.achievement.spec.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`mrMiyagi achievement should be granted to PR creator if coverage increased to 100% 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/mrMiyagi.achievement.jpg",
66
"description": "You're the ultimate zen master. You increased a project coverage to 100%. It was a long journey... but you know...<br><b>First learn stand, then learn fly. Nature rule, creator-san, not mine</b>",
77
"name": "Mr Miyagi",

achievements/src/__snapshots__/never-go-full-retard.achievement.spec.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`neverGoFullRetard achievement should be granted for all supported files 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/neverGoFullRetard.achievement.png",
66
"description": "merged a pull request containing only pictures. pretty!",
77
"name": "never go full retard",
@@ -11,7 +11,7 @@ Object {
1111
`;
1212

1313
exports[`neverGoFullRetard achievement should be granted to creator and reviewers 1`] = `
14-
Object {
14+
{
1515
"avatar": "images/achievements/neverGoFullRetard.achievement.png",
1616
"description": "merged a pull request containing only pictures. pretty!",
1717
"name": "never go full retard",

achievements/src/__snapshots__/optimus-prime.achievement.spec.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`optimusPrime achievement should be granted to PR creator if PR number is prime 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/optimusPrime.achievement.jpeg",
66
"description": "Pull requests with prime numbers are very rare! yours was 3",
77
"name": "optimus prime",

achievements/src/__snapshots__/reaction-on-every-comment.achievement.spec.ts.snap

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`reactionOnEveryComment achievement should be granted if PR and existing comments have reactions should work with both PR comments & inline comments 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/reactionOnEveryComment.achievement.png",
6-
"description": "got for having at least one comment\\\\inline comment, and all of them (including the PR description) had reactions",
6+
"description": "got for having at least one comment\\inline comment, and all of them (including the PR description) had reactions",
77
"name": "royal flush",
88
"relatedPullRequest": "test",
99
"short": "emojis on all of the comments",
1010
}
1111
`;
1212

1313
exports[`reactionOnEveryComment achievement should be granted if PR and existing comments have reactions should work with only PR comments 1`] = `
14-
Object {
14+
{
1515
"avatar": "images/achievements/reactionOnEveryComment.achievement.png",
16-
"description": "got for having at least one comment\\\\inline comment, and all of them (including the PR description) had reactions",
16+
"description": "got for having at least one comment\\inline comment, and all of them (including the PR description) had reactions",
1717
"name": "royal flush",
1818
"relatedPullRequest": "test",
1919
"short": "emojis on all of the comments",
2020
}
2121
`;
2222

2323
exports[`reactionOnEveryComment achievement should be granted if PR and existing comments have reactions should work with only inline comments 1`] = `
24-
Object {
24+
{
2525
"avatar": "images/achievements/reactionOnEveryComment.achievement.png",
26-
"description": "got for having at least one comment\\\\inline comment, and all of them (including the PR description) had reactions",
26+
"description": "got for having at least one comment\\inline comment, and all of them (including the PR description) had reactions",
2727
"name": "royal flush",
2828
"relatedPullRequest": "test",
2929
"short": "emojis on all of the comments",

achievements/src/__snapshots__/the-godfather-consigliere.achievement.spec.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`theGodfatherConsigliere achievement should be granted to PR creator if organization is Kibibit 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/theGodfatherConsigliere.achievement.jpg",
66
"description": "<p>You have contributed to Kibibit! We really appreciate it!</p><p>Accept this achievement as gift on my daughter's wedding day</p>",
77
"name": "The Godfather Consigliere",

achievements/src/__snapshots__/use-github-bot.achievement.spec.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`githubBot achievement should be granted if committer username is web-flow 1`] = `
4-
Object {
4+
{
55
"avatar": "images/achievements/useGithubBot.achievement.jpeg",
66
"description": "used github to create a pull request, using the web-flow bot",
77
"name": "Why not bots?",

0 commit comments

Comments
 (0)