From 768e21c2685db8533d661201625c6d93032d7084 Mon Sep 17 00:00:00 2001 From: Neil Kalman Date: Sun, 13 Oct 2024 15:35:34 +0000 Subject: [PATCH] update jest snapshots to new format + install missing jest-stare --- achievements/package.json | 1 + .../cutting-edges.achievement.spec.ts.snap | 2 +- .../dont-yell-at-me.achievement.spec.ts.snap | 6 +- .../double-review.achievement.spec.ts.snap | 4 +- .../dr-claw.achievement.spec.ts.snap | 8 +- .../helping-hand.achievement.spec.ts.snap | 10 +- .../inspector-gadget.achievement.spec.ts.snap | 8 +- ...label-baby-junior.achievement.spec.ts.snap | 2 +- .../meeseek.achievement.spec.ts.snap | 24 +-- .../member.achievement.spec.ts.snap | 2 +- .../mr-miyagi.achievement.spec.ts.snap | 2 +- ...er-go-full-retard.achievement.spec.ts.snap | 4 +- .../optimus-prime.achievement.spec.ts.snap | 2 +- ...-on-every-comment.achievement.spec.ts.snap | 12 +- ...ather-consigliere.achievement.spec.ts.snap | 2 +- .../use-github-bot.achievement.spec.ts.snap | 2 +- ...ctions-in-comment.achievement.spec.ts.snap | 8 +- pnpm-lock.yaml | 170 ++++++++++++++++++ 18 files changed, 220 insertions(+), 49 deletions(-) diff --git a/achievements/package.json b/achievements/package.json index feae5de..bda9e5d 100644 --- a/achievements/package.json +++ b/achievements/package.json @@ -26,6 +26,7 @@ "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", "jest": "^29.7.0", + "jest-stare": "^2.5.2", "rimraf": "^6.0.1", "ts-jest": "^29.2.5", "ts-loader": "^9.5.1", diff --git a/achievements/src/__snapshots__/cutting-edges.achievement.spec.ts.snap b/achievements/src/__snapshots__/cutting-edges.achievement.spec.ts.snap index fe5ef85..1253fc0 100644 --- a/achievements/src/__snapshots__/cutting-edges.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/cutting-edges.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Cutting Edges achievement should be granted if pull request was merged without approvals 1`] = ` -Object { +{ "avatar": "images/achievements/cuttingEdges.achievement.jpg", "description": "You've merged a pull request without a reviewer confirming", "name": "Cutting Edges", diff --git a/achievements/src/__snapshots__/dont-yell-at-me.achievement.spec.ts.snap b/achievements/src/__snapshots__/dont-yell-at-me.achievement.spec.ts.snap index eeea910..a458cc7 100644 --- a/achievements/src/__snapshots__/dont-yell-at-me.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/dont-yell-at-me.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`dontYellAtMe achievement should be granted to PR creator if both reasons 1`] = ` -Object { +{ "avatar": "images/achievements/dontYellAtMe.achievement.jpg", "description": "You've used ALL CAPS and 3 or more exclamation marks in your Pull Request title", "name": "Don't Yell At Me!!!", @@ -11,7 +11,7 @@ Object { `; exports[`dontYellAtMe achievement should be granted to PR creator if more than 2 '!' 1`] = ` -Object { +{ "avatar": "images/achievements/dontYellAtMe.achievement.jpg", "description": "You've used 3 or more exclamation marks in your Pull Request title", "name": "Don't Yell At Me!!!", @@ -21,7 +21,7 @@ Object { `; exports[`dontYellAtMe achievement should be granted to PR creator if title is all caps 1`] = ` -Object { +{ "avatar": "images/achievements/dontYellAtMe.achievement.jpg", "description": "You've used ALL CAPS in your Pull Request title", "name": "Don't Yell At Me!!!", diff --git a/achievements/src/__snapshots__/double-review.achievement.spec.ts.snap b/achievements/src/__snapshots__/double-review.achievement.spec.ts.snap index 82d9203..7618f3f 100644 --- a/achievements/src/__snapshots__/double-review.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/double-review.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`doubleReview achievement should be granted if 2 reviewers excluding creator 1`] = ` -Object { +{ "avatar": "images/achievements/doubleReview.achievement.gif", "description": "double headed code review.
It doesn't matter who added you, apparently, both of you are needed for a one man job 😇", "name": "We're ready, master", @@ -11,7 +11,7 @@ Object { `; exports[`doubleReview achievement should be granted if 2 reviewers excluding creator 2`] = ` -Object { +{ "avatar": "images/achievements/doubleReview.achievement.gif", "description": "double headed code review.
It doesn't matter who added you, apparently, both of you are needed for a one man job 😇", "name": "We're ready, master", diff --git a/achievements/src/__snapshots__/dr-claw.achievement.spec.ts.snap b/achievements/src/__snapshots__/dr-claw.achievement.spec.ts.snap index f3f8a47..9825397 100644 --- a/achievements/src/__snapshots__/dr-claw.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/dr-claw.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`drClaw achievement should be granted to PR creator if coverage decreased by 2+ 1`] = ` -Object { +{ "avatar": "images/achievements/drClaw.achievement.gif", "description": "You've decreased a project coverage by -6.2%", "name": "Dr. Claw", @@ -11,7 +11,7 @@ Object { `; exports[`drClaw achievement should parse only last coverall comment 1`] = ` -Object { +{ "avatar": "images/achievements/drClaw.achievement.gif", "description": "You've decreased a project coverage by -6.2%", "name": "Dr. Claw", @@ -21,7 +21,7 @@ Object { `; exports[`drClaw achievement should write in description last decreased percentage 1`] = ` -Object { +{ "avatar": "images/achievements/drClaw.achievement.gif", "description": "You've decreased a project coverage by -10.6%", "name": "Dr. Claw", @@ -31,7 +31,7 @@ Object { `; exports[`drClaw achievement should write in description last decreased percentage 2`] = ` -Object { +{ "avatar": "images/achievements/drClaw.achievement.gif", "description": "You've decreased a project coverage by -6.2%", "name": "Dr. Claw", diff --git a/achievements/src/__snapshots__/helping-hand.achievement.spec.ts.snap b/achievements/src/__snapshots__/helping-hand.achievement.spec.ts.snap index 661855e..550d770 100644 --- a/achievements/src/__snapshots__/helping-hand.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/helping-hand.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`helpingHand achievement should add indication if more than one PR reviewer 1`] = ` -Object { +{ "avatar": "images/achievements/helpingHandManInBlack.achievement.jpg", "description": "Your reviewers reviewer, 2nd committed to your Pull Request", "name": "Helping Hand", @@ -11,7 +11,7 @@ Object { `; exports[`helpingHand achievement should add indication if more than one PR reviewer 2`] = ` -Object { +{ "avatar": "images/achievements/helpingHandHelloThere.achievement.jpg", "description": "You've committed to creator's Pull Request you are reviewing", "name": "Helping Hand", @@ -21,7 +21,7 @@ Object { `; exports[`helpingHand achievement should add indication if more than one PR reviewer 3`] = ` -Object { +{ "avatar": "images/achievements/helpingHandHelloThere.achievement.jpg", "description": "You've committed to creator's Pull Request you are reviewing", "name": "Helping Hand", @@ -31,7 +31,7 @@ Object { `; exports[`helpingHand achievement should be granted if PR reviewer added commit 1`] = ` -Object { +{ "avatar": "images/achievements/helpingHandManInBlack.achievement.jpg", "description": "Your reviewer reviewer committed to your Pull Request", "name": "Helping Hand", @@ -41,7 +41,7 @@ Object { `; exports[`helpingHand achievement should be granted if PR reviewer added commit 2`] = ` -Object { +{ "avatar": "images/achievements/helpingHandHelloThere.achievement.jpg", "description": "You've committed to creator's Pull Request you are reviewing", "name": "Helping Hand", diff --git a/achievements/src/__snapshots__/inspector-gadget.achievement.spec.ts.snap b/achievements/src/__snapshots__/inspector-gadget.achievement.spec.ts.snap index 96d88e2..dca8c1c 100644 --- a/achievements/src/__snapshots__/inspector-gadget.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/inspector-gadget.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`inspectorGadget achievement should be granted to PR creator if coverage increased by 2+ 1`] = ` -Object { +{ "avatar": "images/achievements/inspectorGadget.achievement.jpg", "description": "You've increased a project coverage by +2.6%", "name": "Inspector Gadget", @@ -11,7 +11,7 @@ Object { `; exports[`inspectorGadget achievement should parse only last coverall comment 1`] = ` -Object { +{ "avatar": "images/achievements/inspectorGadget.achievement.jpg", "description": "You've increased a project coverage by +2.6%", "name": "Inspector Gadget", @@ -21,7 +21,7 @@ Object { `; exports[`inspectorGadget achievement should write in description last increased percentage 1`] = ` -Object { +{ "avatar": "images/achievements/inspectorGadget.achievement.jpg", "description": "You've increased a project coverage by +10.6%", "name": "Inspector Gadget", @@ -31,7 +31,7 @@ Object { `; exports[`inspectorGadget achievement should write in description last increased percentage 2`] = ` -Object { +{ "avatar": "images/achievements/inspectorGadget.achievement.jpg", "description": "You've increased a project coverage by +2.6%", "name": "Inspector Gadget", diff --git a/achievements/src/__snapshots__/label-baby-junior.achievement.spec.ts.snap b/achievements/src/__snapshots__/label-baby-junior.achievement.spec.ts.snap index 4473882..e91ee11 100644 --- a/achievements/src/__snapshots__/label-baby-junior.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/label-baby-junior.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`labelBabyJunior achievement should be granted to PR creator if more than 5 labels 1`] = ` -Object { +{ "avatar": "images/achievements/labelBabyJunior.achievement.jpg", "description": "You've put many labels, thank you for organizing. You're a gift that keeps on re-giving", "name": "The Label Maker", diff --git a/achievements/src/__snapshots__/meeseek.achievement.spec.ts.snap b/achievements/src/__snapshots__/meeseek.achievement.spec.ts.snap index 0a59a34..2a28d34 100644 --- a/achievements/src/__snapshots__/meeseek.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/meeseek.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`meeseek achievement Github's resolve keywords should recognize "close" 1`] = ` -Object { +{ "avatar": "images/achievements/meeseek.achievement.gif", "description": "

Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?

Pull requests don't usually have to exist this long. It's getting weird.

", "name": "I'm Mr. Meeseeks! Look at me!", @@ -11,7 +11,7 @@ Object { `; exports[`meeseek achievement Github's resolve keywords should recognize "closed" 1`] = ` -Object { +{ "avatar": "images/achievements/meeseek.achievement.gif", "description": "

Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?

Pull requests don't usually have to exist this long. It's getting weird.

", "name": "I'm Mr. Meeseeks! Look at me!", @@ -21,7 +21,7 @@ Object { `; exports[`meeseek achievement Github's resolve keywords should recognize "closes" 1`] = ` -Object { +{ "avatar": "images/achievements/meeseek.achievement.gif", "description": "

Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?

Pull requests don't usually have to exist this long. It's getting weird.

", "name": "I'm Mr. Meeseeks! Look at me!", @@ -31,7 +31,7 @@ Object { `; exports[`meeseek achievement Github's resolve keywords should recognize "fix" 1`] = ` -Object { +{ "avatar": "images/achievements/meeseek.achievement.gif", "description": "

Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?

Pull requests don't usually have to exist this long. It's getting weird.

", "name": "I'm Mr. Meeseeks! Look at me!", @@ -41,7 +41,7 @@ Object { `; exports[`meeseek achievement Github's resolve keywords should recognize "fixed" 1`] = ` -Object { +{ "avatar": "images/achievements/meeseek.achievement.gif", "description": "

Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?

Pull requests don't usually have to exist this long. It's getting weird.

", "name": "I'm Mr. Meeseeks! Look at me!", @@ -51,7 +51,7 @@ Object { `; exports[`meeseek achievement Github's resolve keywords should recognize "fixes" 1`] = ` -Object { +{ "avatar": "images/achievements/meeseek.achievement.gif", "description": "

Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?

Pull requests don't usually have to exist this long. It's getting weird.

", "name": "I'm Mr. Meeseeks! Look at me!", @@ -61,7 +61,7 @@ Object { `; exports[`meeseek achievement Github's resolve keywords should recognize "resolve" 1`] = ` -Object { +{ "avatar": "images/achievements/meeseek.achievement.gif", "description": "

Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?

Pull requests don't usually have to exist this long. It's getting weird.

", "name": "I'm Mr. Meeseeks! Look at me!", @@ -71,7 +71,7 @@ Object { `; exports[`meeseek achievement Github's resolve keywords should recognize "resolved" 1`] = ` -Object { +{ "avatar": "images/achievements/meeseek.achievement.gif", "description": "

Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?

Pull requests don't usually have to exist this long. It's getting weird.

", "name": "I'm Mr. Meeseeks! Look at me!", @@ -81,7 +81,7 @@ Object { `; exports[`meeseek achievement Github's resolve keywords should recognize "resolves" 1`] = ` -Object { +{ "avatar": "images/achievements/meeseek.achievement.gif", "description": "

Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?

Pull requests don't usually have to exist this long. It's getting weird.

", "name": "I'm Mr. Meeseeks! Look at me!", @@ -91,7 +91,7 @@ Object { `; exports[`meeseek achievement Github's resolve keywords should recognize a combination 1`] = ` -Object { +{ "avatar": "images/achievements/meeseek.achievement.gif", "description": "

Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?

Pull requests don't usually have to exist this long. It's getting weird.

", "name": "I'm Mr. Meeseeks! Look at me!", @@ -101,7 +101,7 @@ Object { `; exports[`meeseek achievement should be case insensitive 1`] = ` -Object { +{ "avatar": "images/achievements/meeseek.achievement.gif", "description": "

Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?

Pull requests don't usually have to exist this long. It's getting weird.

", "name": "I'm Mr. Meeseeks! Look at me!", @@ -111,7 +111,7 @@ Object { `; exports[`meeseek achievement should be granted to PR creator if 4 issues resolved 1`] = ` -Object { +{ "avatar": "images/achievements/meeseek.achievement.gif", "description": "

Congrats on resolving so many issues at ones! Shouldn't pull requests be kept simple?

Pull requests don't usually have to exist this long. It's getting weird.

", "name": "I'm Mr. Meeseeks! Look at me!", diff --git a/achievements/src/__snapshots__/member.achievement.spec.ts.snap b/achievements/src/__snapshots__/member.achievement.spec.ts.snap index 794c53c..815a2c1 100644 --- a/achievements/src/__snapshots__/member.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/member.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`member achievement should be granted if PR opened more than 2 weeks ago 1`] = ` -Object { +{ "avatar": "images/achievements/member.achievement.jpg", "description": "A pull request you've created 2 weeks ago is finally merged", "name": "Member pull request #undefined?", diff --git a/achievements/src/__snapshots__/mr-miyagi.achievement.spec.ts.snap b/achievements/src/__snapshots__/mr-miyagi.achievement.spec.ts.snap index 1d073d7..0defa51 100644 --- a/achievements/src/__snapshots__/mr-miyagi.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/mr-miyagi.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`mrMiyagi achievement should be granted to PR creator if coverage increased to 100% 1`] = ` -Object { +{ "avatar": "images/achievements/mrMiyagi.achievement.jpg", "description": "You're the ultimate zen master. You increased a project coverage to 100%. It was a long journey... but you know...
First learn stand, then learn fly. Nature rule, creator-san, not mine", "name": "Mr Miyagi", diff --git a/achievements/src/__snapshots__/never-go-full-retard.achievement.spec.ts.snap b/achievements/src/__snapshots__/never-go-full-retard.achievement.spec.ts.snap index 06cf17b..504702e 100644 --- a/achievements/src/__snapshots__/never-go-full-retard.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/never-go-full-retard.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`neverGoFullRetard achievement should be granted for all supported files 1`] = ` -Object { +{ "avatar": "images/achievements/neverGoFullRetard.achievement.png", "description": "merged a pull request containing only pictures. pretty!", "name": "never go full retard", @@ -11,7 +11,7 @@ Object { `; exports[`neverGoFullRetard achievement should be granted to creator and reviewers 1`] = ` -Object { +{ "avatar": "images/achievements/neverGoFullRetard.achievement.png", "description": "merged a pull request containing only pictures. pretty!", "name": "never go full retard", diff --git a/achievements/src/__snapshots__/optimus-prime.achievement.spec.ts.snap b/achievements/src/__snapshots__/optimus-prime.achievement.spec.ts.snap index f0abf6b..e8a5017 100644 --- a/achievements/src/__snapshots__/optimus-prime.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/optimus-prime.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`optimusPrime achievement should be granted to PR creator if PR number is prime 1`] = ` -Object { +{ "avatar": "images/achievements/optimusPrime.achievement.jpeg", "description": "Pull requests with prime numbers are very rare! yours was 3", "name": "optimus prime", diff --git a/achievements/src/__snapshots__/reaction-on-every-comment.achievement.spec.ts.snap b/achievements/src/__snapshots__/reaction-on-every-comment.achievement.spec.ts.snap index 3b527b1..5b7b9ce 100644 --- a/achievements/src/__snapshots__/reaction-on-every-comment.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/reaction-on-every-comment.achievement.spec.ts.snap @@ -1,9 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`reactionOnEveryComment achievement should be granted if PR and existing comments have reactions should work with both PR comments & inline comments 1`] = ` -Object { +{ "avatar": "images/achievements/reactionOnEveryComment.achievement.png", - "description": "got for having at least one comment\\\\inline comment, and all of them (including the PR description) had reactions", + "description": "got for having at least one comment\\inline comment, and all of them (including the PR description) had reactions", "name": "royal flush", "relatedPullRequest": "test", "short": "emojis on all of the comments", @@ -11,9 +11,9 @@ Object { `; exports[`reactionOnEveryComment achievement should be granted if PR and existing comments have reactions should work with only PR comments 1`] = ` -Object { +{ "avatar": "images/achievements/reactionOnEveryComment.achievement.png", - "description": "got for having at least one comment\\\\inline comment, and all of them (including the PR description) had reactions", + "description": "got for having at least one comment\\inline comment, and all of them (including the PR description) had reactions", "name": "royal flush", "relatedPullRequest": "test", "short": "emojis on all of the comments", @@ -21,9 +21,9 @@ Object { `; exports[`reactionOnEveryComment achievement should be granted if PR and existing comments have reactions should work with only inline comments 1`] = ` -Object { +{ "avatar": "images/achievements/reactionOnEveryComment.achievement.png", - "description": "got for having at least one comment\\\\inline comment, and all of them (including the PR description) had reactions", + "description": "got for having at least one comment\\inline comment, and all of them (including the PR description) had reactions", "name": "royal flush", "relatedPullRequest": "test", "short": "emojis on all of the comments", diff --git a/achievements/src/__snapshots__/the-godfather-consigliere.achievement.spec.ts.snap b/achievements/src/__snapshots__/the-godfather-consigliere.achievement.spec.ts.snap index 4aabd85..40f9613 100644 --- a/achievements/src/__snapshots__/the-godfather-consigliere.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/the-godfather-consigliere.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`theGodfatherConsigliere achievement should be granted to PR creator if organization is Kibibit 1`] = ` -Object { +{ "avatar": "images/achievements/theGodfatherConsigliere.achievement.jpg", "description": "

You have contributed to Kibibit! We really appreciate it!

Accept this achievement as gift on my daughter's wedding day

", "name": "The Godfather Consigliere", diff --git a/achievements/src/__snapshots__/use-github-bot.achievement.spec.ts.snap b/achievements/src/__snapshots__/use-github-bot.achievement.spec.ts.snap index db9759f..521db19 100644 --- a/achievements/src/__snapshots__/use-github-bot.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/use-github-bot.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`githubBot achievement should be granted if committer username is web-flow 1`] = ` -Object { +{ "avatar": "images/achievements/useGithubBot.achievement.jpeg", "description": "used github to create a pull request, using the web-flow bot", "name": "Why not bots?", diff --git a/achievements/src/__snapshots__/used-all-reactions-in-comment.achievement.spec.ts.snap b/achievements/src/__snapshots__/used-all-reactions-in-comment.achievement.spec.ts.snap index 7d890e6..e928383 100644 --- a/achievements/src/__snapshots__/used-all-reactions-in-comment.achievement.spec.ts.snap +++ b/achievements/src/__snapshots__/used-all-reactions-in-comment.achievement.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`usedAllReactionsInComment achievement should be granted if PR has a message with all reactions should work if all reactions + author reaction 1`] = ` -Object { +{ "avatar": "images/achievements/gladiator.achievement.gif", "description": "Your message got all the possible reactions. Enjoy your 15 minutes of fame", "name": "Gladiator", @@ -11,7 +11,7 @@ Object { `; exports[`usedAllReactionsInComment achievement should be granted if PR has a message with all reactions should work with PR comments 1`] = ` -Object { +{ "avatar": "images/achievements/gladiator.achievement.gif", "description": "Your message got all the possible reactions. Enjoy your 15 minutes of fame", "name": "Gladiator", @@ -21,7 +21,7 @@ Object { `; exports[`usedAllReactionsInComment achievement should be granted if PR has a message with all reactions should work with PR description 1`] = ` -Object { +{ "avatar": "images/achievements/gladiator.achievement.gif", "description": "Your message got all the possible reactions. Enjoy your 15 minutes of fame", "name": "Gladiator", @@ -31,7 +31,7 @@ Object { `; exports[`usedAllReactionsInComment achievement should be granted if PR has a message with all reactions should work with inline comments 1`] = ` -Object { +{ "avatar": "images/achievements/gladiator.achievement.gif", "description": "Your message got all the possible reactions. Enjoy your 15 minutes of fame", "name": "Gladiator", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6f68a20..ed575dc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -126,6 +126,9 @@ importers: jest: specifier: ^29.7.0 version: 29.7.0(@types/node@20.16.11)(ts-node@10.9.2(@types/node@20.16.11)(typescript@5.6.3)) + jest-stare: + specifier: ^2.5.2 + version: 2.5.2(@popperjs/core@2.11.8) rimraf: specifier: ^6.0.1 version: 6.0.1 @@ -2016,6 +2019,9 @@ packages: resolution: {integrity: sha512-p1GPR8ve4YWDorFQd0PYmOKNoq84MQe/n18NireOHcGiVAd/n8KYqVxTose4YF902ctEClmQaUOPaqCqfh86qA==} engines: {node: '>=12'} + '@kurkle/color@0.3.2': + resolution: {integrity: sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw==} + '@kwsites/file-exists@1.1.1': resolution: {integrity: sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==} @@ -2397,6 +2403,9 @@ packages: engines: {node: '>=18'} hasBin: true + '@popperjs/core@2.11.8': + resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==} + '@protobufjs/aspromise@1.1.2': resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==} @@ -3199,6 +3208,9 @@ packages: engines: {'0': node >= 0.8.0} hasBin: true + ansi-parser@3.2.10: + resolution: {integrity: sha512-CGKGIbd678lm15IXJXI1cTyOVAnMQw0jES+klW/yIc+GzYccsYanLMhczPIIj2hE64B79g75QfiuWrEWd6nJdg==} + ansi-regex@2.1.1: resolution: {integrity: sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==} engines: {node: '>=0.10.0'} @@ -3489,6 +3501,11 @@ packages: boolbase@1.0.0: resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} + bootstrap@5.3.3: + resolution: {integrity: sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg==} + peerDependencies: + '@popperjs/core': ^2.11.8 + boxen@5.1.2: resolution: {integrity: sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==} engines: {node: '>=10'} @@ -3615,6 +3632,10 @@ packages: chardet@0.7.0: resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} + chart.js@4.4.4: + resolution: {integrity: sha512-emICKGBABnxhMjUjlYRR12PmOXhJ2eJjEHL2/dZlWjxRAZT1D8xplLFq5M0tMQK8ja+wBS/tuVEJB5C6r7VxJA==} + engines: {pnpm: '>=8'} + check-disk-space@3.4.0: resolution: {integrity: sha512-drVkSqfwA+TvuEhFipiR1OC9boEGZL5RrWvVsOthdcvQNXyCCuKkEiTOTXZ7qxSf/GLwq4GvzfrQD/Wz325hgw==} engines: {node: '>=16'} @@ -4175,10 +4196,18 @@ packages: resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + diff2html@3.4.48: + resolution: {integrity: sha512-1lzNSg0G0VPKZPTyi4knzV2nAWTXBy/QaWCKzDto6iEIlcuOJEG0li4bElJfpHNz+pBqPu4AcC1i9ZCo9KMUOg==} + engines: {node: '>=12'} + diff@4.0.2: resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} engines: {node: '>=0.3.1'} + diff@5.1.0: + resolution: {integrity: sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==} + engines: {node: '>=0.3.1'} + dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -4712,6 +4741,10 @@ packages: resolution: {integrity: sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==} engines: {node: '>=4'} + find-up@3.0.0: + resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==} + engines: {node: '>=6'} + find-up@4.1.0: resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} engines: {node: '>=8'} @@ -5035,10 +5068,21 @@ packages: highlight.js@10.7.3: resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==} + highlight.js@11.9.0: + resolution: {integrity: sha512-fJ7cW7fQGCYAkgv4CPfwFHrfd/cLS4Hau96JuJ+ZTOWhjnhoeN1ub1tFmALm/+lW5z4WCAuAV9bm05AP0mS6Gw==} + engines: {node: '>=12.0.0'} + hjson@3.2.2: resolution: {integrity: sha512-MkUeB0cTIlppeSsndgESkfFD21T2nXPRaBStLtf3cAYA2bVEFdXlodZB0TukwZiobPD1Ksax5DK4RTZeaXCI3Q==} hasBin: true + hogan.js@3.0.2: + resolution: {integrity: sha512-RqGs4wavGYJWE07t35JQccByczmNUXQT0E12ZYV1VKYu5UiAU9lsos/yBAcf840+zrUQQxgVduCR5/B8nNtibg==} + hasBin: true + + holderjs@2.9.9: + resolution: {integrity: sha512-ceWPz1MrR3dxOoZXiom+G48+l1VPG3TcjBw9fq5iwCiZAMvYX8Aia13GOxT7DoV/AcSyTH7Vvr11ygjZP9qn4w==} + homedir-polyfill@1.0.3: resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} engines: {node: '>=0.10.0'} @@ -5598,6 +5642,11 @@ packages: resolution: {integrity: sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-stare@2.5.2: + resolution: {integrity: sha512-dvxHXOsiJlvBi0n2dK9pz6RWFTdPB6njc2ZoMpyjmWI+aIL+X1W8OW5mTm1pkv/quy2ocKO/G+GsTe7Bv07xkQ==} + engines: {node: '>=6.0.0'} + hasBin: true + jest-util@29.7.0: resolution: {integrity: sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -5636,6 +5685,9 @@ packages: resolution: {integrity: sha512-+kHj8HXArPfpPEKGLZ+kB5ONRTCiGQXo8RQYL0hH8t6pWXUBBK5KkkQmTNOwKK4LEsd0yTsgtjJVm4UBSZea4w==} engines: {node: '>= 0.6.0'} + jquery@3.7.1: + resolution: {integrity: sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==} + js-beautify@1.15.1: resolution: {integrity: sha512-ESjNzSlt/sWE8sciZH8kBF8BPlwXPwhR6pWKAw8bw4Bwj+iZcnKW6ONWUutJ7eObuBZQpiIb8S7OYspWrKt7rA==} engines: {node: '>=14'} @@ -5914,6 +5966,10 @@ packages: resolution: {integrity: sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==} engines: {node: '>=4'} + locate-path@3.0.0: + resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==} + engines: {node: '>=6'} + locate-path@5.0.0: resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} engines: {node: '>=8'} @@ -6218,6 +6274,10 @@ packages: resolution: {integrity: sha512-sdqtiFt3lkOaYvTXSRIUjkIdPTcxgv5+fgqYE/5qgwdw12cOrAuzzgzvVExIkH/ul1oeHN3bCLOWSG3XOqbKKw==} engines: {node: '>=10'} + mkdirp@0.3.0: + resolution: {integrity: sha512-OHsdUcVAQ6pOtg5JYWpCBo9W/GySVuwvP9hueRMW7UqshC0tbfzLv8wjySTPm3tfUZ/21CE9E1pJagOA91Pxew==} + deprecated: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) + mkdirp@0.3.5: resolution: {integrity: sha512-8OCq0De/h9ZxseqzCH8Kw/Filf5pF/vMI6+BH7Lu0jXz2pqYCjTAQRolSxRIi+Ax+oCCjlxoJMP0YQ4XlrQNHg==} deprecated: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) @@ -6236,6 +6296,9 @@ packages: engines: {node: '>=10'} hasBin: true + moment@2.30.1: + resolution: {integrity: sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==} + mrmime@2.0.0: resolution: {integrity: sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==} engines: {node: '>=10'} @@ -6257,6 +6320,10 @@ packages: resolution: {integrity: sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==} hasBin: true + mustache@4.2.0: + resolution: {integrity: sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==} + hasBin: true + mute-stream@0.0.7: resolution: {integrity: sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ==} @@ -6387,6 +6454,10 @@ packages: node-releases@2.0.18: resolution: {integrity: sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==} + nopt@1.0.10: + resolution: {integrity: sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==} + hasBin: true + nopt@5.0.0: resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==} engines: {node: '>=6'} @@ -6599,6 +6670,10 @@ packages: resolution: {integrity: sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==} engines: {node: '>=4'} + p-locate@3.0.0: + resolution: {integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==} + engines: {node: '>=6'} + p-locate@4.1.0: resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} engines: {node: '>=8'} @@ -6845,6 +6920,10 @@ packages: resolution: {integrity: sha512-Ie9z/WINcxxLp27BKOCHGde4ITq9UklYKDzVo1nhk5sqGEXU3FpkwP5GM2voTGJkGd9B3Otl+Q4uwSOeSUtOBA==} engines: {node: '>=14.16'} + pkg-up@3.1.0: + resolution: {integrity: sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==} + engines: {node: '>=8'} + pkginfo@0.2.3: resolution: {integrity: sha512-7W7wTrE/NsY8xv/DTGjwNIyNah81EQH0MWcTzrHL6pOpMocOGZc0Mbdz9aXxSrp+U0mSmkU8jrNCDCfUs3sOBg==} engines: {node: '>= 0.4.0'} @@ -6867,6 +6946,10 @@ packages: resolution: {integrity: sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g==} engines: {node: '>=12.0.0'} + popper.js@1.16.1: + resolution: {integrity: sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ==} + deprecated: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 + possible-typed-array-names@1.0.0: resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} engines: {node: '>= 0.4'} @@ -11478,6 +11561,8 @@ snapshots: clean-stack: 2.2.0 kleur: 3.0.3 + '@kurkle/color@0.3.2': {} + '@kwsites/file-exists@1.1.1': dependencies: debug: 4.3.7 @@ -11929,6 +12014,8 @@ snapshots: dependencies: playwright: 1.48.0 + '@popperjs/core@2.11.8': {} + '@protobufjs/aspromise@1.1.2': {} '@protobufjs/base64@1.1.2': {} @@ -12971,6 +13058,8 @@ snapshots: ansi-html-community@0.0.8: {} + ansi-parser@3.2.10: {} + ansi-regex@2.1.1: {} ansi-regex@3.0.1: {} @@ -13372,6 +13461,10 @@ snapshots: boolbase@1.0.0: {} + bootstrap@5.3.3(@popperjs/core@2.11.8): + dependencies: + '@popperjs/core': 2.11.8 + boxen@5.1.2: dependencies: ansi-align: 3.0.1 @@ -13527,6 +13620,10 @@ snapshots: chardet@0.7.0: {} + chart.js@4.4.4: + dependencies: + '@kurkle/color': 0.3.2 + check-disk-space@3.4.0: {} chokidar@3.6.0: @@ -14098,8 +14195,17 @@ snapshots: diff-sequences@29.6.3: {} + diff2html@3.4.48: + dependencies: + diff: 5.1.0 + hogan.js: 3.0.2 + optionalDependencies: + highlight.js: 11.9.0 + diff@4.0.2: {} + diff@5.1.0: {} + dir-glob@3.0.1: dependencies: path-type: 4.0.0 @@ -14886,6 +14992,10 @@ snapshots: dependencies: locate-path: 2.0.0 + find-up@3.0.0: + dependencies: + locate-path: 3.0.0 + find-up@4.1.0: dependencies: locate-path: 5.0.0 @@ -15247,8 +15357,18 @@ snapshots: highlight.js@10.7.3: {} + highlight.js@11.9.0: + optional: true + hjson@3.2.2: {} + hogan.js@3.0.2: + dependencies: + mkdirp: 0.3.0 + nopt: 1.0.10 + + holderjs@2.9.9: {} + homedir-polyfill@1.0.3: dependencies: parse-passwd: 1.0.0 @@ -16016,6 +16136,29 @@ snapshots: transitivePeerDependencies: - supports-color + jest-stare@2.5.2(@popperjs/core@2.11.8): + dependencies: + '@jest/reporters': 29.7.0 + '@jest/test-result': 29.7.0 + '@jest/types': 29.6.3 + '@types/jest': 29.5.13 + ansi-parser: 3.2.10 + bootstrap: 5.3.3(@popperjs/core@2.11.8) + chalk: 4.1.2 + chart.js: 4.4.4 + diff2html: 3.4.48 + holderjs: 2.9.9 + jquery: 3.7.1 + moment: 2.30.1 + mustache: 4.2.0 + pkg-up: 3.1.0 + popper.js: 1.16.1 + yargs: 17.7.2 + transitivePeerDependencies: + - '@popperjs/core' + - node-notifier + - supports-color + jest-util@29.7.0: dependencies: '@jest/types': 29.6.3 @@ -16074,6 +16217,8 @@ snapshots: jmespath@0.15.0: {} + jquery@3.7.1: {} + js-beautify@1.15.1: dependencies: config-chain: 1.1.13 @@ -16394,6 +16539,11 @@ snapshots: p-locate: 2.0.0 path-exists: 3.0.0 + locate-path@3.0.0: + dependencies: + p-locate: 3.0.0 + path-exists: 3.0.0 + locate-path@5.0.0: dependencies: p-locate: 4.1.0 @@ -16700,6 +16850,8 @@ snapshots: infer-owner: 1.0.4 mkdirp: 1.0.4 + mkdirp@0.3.0: {} + mkdirp@0.3.5: {} mkdirp@0.5.6: @@ -16710,6 +16862,8 @@ snapshots: mkdirp@2.1.6: {} + moment@2.30.1: {} + mrmime@2.0.0: {} ms@2.0.0: {} @@ -16733,6 +16887,8 @@ snapshots: dns-packet: 5.6.1 thunky: 1.1.0 + mustache@4.2.0: {} + mute-stream@0.0.7: {} mute-stream@0.0.8: {} @@ -16883,6 +17039,10 @@ snapshots: node-releases@2.0.18: {} + nopt@1.0.10: + dependencies: + abbrev: 1.1.1 + nopt@5.0.0: dependencies: abbrev: 1.1.1 @@ -17138,6 +17298,10 @@ snapshots: dependencies: p-limit: 1.3.0 + p-locate@3.0.0: + dependencies: + p-limit: 2.3.0 + p-locate@4.1.0: dependencies: p-limit: 2.3.0 @@ -17403,6 +17567,10 @@ snapshots: dependencies: find-up: 6.3.0 + pkg-up@3.1.0: + dependencies: + find-up: 3.0.0 + pkginfo@0.2.3: {} playwright-core@1.48.0: {} @@ -17417,6 +17585,8 @@ snapshots: pony-cause@1.1.1: {} + popper.js@1.16.1: {} + possible-typed-array-names@1.0.0: {} postcss-loader@8.1.1(postcss@8.4.35)(typescript@5.4.5)(webpack@5.94.0(esbuild@0.20.1)):