Skip to content

Commit

Permalink
update jest snapshots to new format + install missing jest-stare
Browse files Browse the repository at this point in the history
  • Loading branch information
thatkookooguy committed Oct 13, 2024
1 parent 7ddedfc commit 768e21c
Show file tree
Hide file tree
Showing 18 changed files with 220 additions and 49 deletions.
1 change: 1 addition & 0 deletions achievements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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!!!",
Expand All @@ -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!!!",
Expand All @@ -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!!!",
Expand Down
Original file line number Diff line number Diff line change
@@ -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.<br>It doesn't matter who added you, apparently, both of you are needed for a one man job 😇",
"name": "We're ready, master",
Expand All @@ -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.<br>It doesn't matter who added you, apparently, both of you are needed for a one man job 😇",
"name": "We're ready, master",
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
24 changes: 12 additions & 12 deletions achievements/src/__snapshots__/meeseek.achievement.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -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": "<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>",
"name": "I'm Mr. Meeseeks! Look at me!",
Expand All @@ -11,7 +11,7 @@ Object {
`;

exports[`meeseek achievement Github's resolve keywords should recognize "closed" 1`] = `
Object {
{
"avatar": "images/achievements/meeseek.achievement.gif",
"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>",
"name": "I'm Mr. Meeseeks! Look at me!",
Expand All @@ -21,7 +21,7 @@ Object {
`;

exports[`meeseek achievement Github's resolve keywords should recognize "closes" 1`] = `
Object {
{
"avatar": "images/achievements/meeseek.achievement.gif",
"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>",
"name": "I'm Mr. Meeseeks! Look at me!",
Expand All @@ -31,7 +31,7 @@ Object {
`;

exports[`meeseek achievement Github's resolve keywords should recognize "fix" 1`] = `
Object {
{
"avatar": "images/achievements/meeseek.achievement.gif",
"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>",
"name": "I'm Mr. Meeseeks! Look at me!",
Expand All @@ -41,7 +41,7 @@ Object {
`;

exports[`meeseek achievement Github's resolve keywords should recognize "fixed" 1`] = `
Object {
{
"avatar": "images/achievements/meeseek.achievement.gif",
"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>",
"name": "I'm Mr. Meeseeks! Look at me!",
Expand All @@ -51,7 +51,7 @@ Object {
`;

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

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

exports[`meeseek achievement Github's resolve keywords should recognize "resolved" 1`] = `
Object {
{
"avatar": "images/achievements/meeseek.achievement.gif",
"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>",
"name": "I'm Mr. Meeseeks! Look at me!",
Expand All @@ -81,7 +81,7 @@ Object {
`;

exports[`meeseek achievement Github's resolve keywords should recognize "resolves" 1`] = `
Object {
{
"avatar": "images/achievements/meeseek.achievement.gif",
"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>",
"name": "I'm Mr. Meeseeks! Look at me!",
Expand All @@ -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": "<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>",
"name": "I'm Mr. Meeseeks! Look at me!",
Expand All @@ -101,7 +101,7 @@ Object {
`;

exports[`meeseek achievement should be case insensitive 1`] = `
Object {
{
"avatar": "images/achievements/meeseek.achievement.gif",
"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>",
"name": "I'm Mr. Meeseeks! Look at me!",
Expand All @@ -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": "<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>",
"name": "I'm Mr. Meeseeks! Look at me!",
Expand Down
Original file line number Diff line number Diff line change
@@ -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?",
Expand Down
Original file line number Diff line number Diff line change
@@ -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...<br><b>First learn stand, then learn fly. Nature rule, creator-san, not mine</b>",
"name": "Mr Miyagi",
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
// 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",
}
`;

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",
}
`;

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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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": "<p>You have contributed to Kibibit! We really appreciate it!</p><p>Accept this achievement as gift on my daughter's wedding day</p>",
"name": "The Godfather Consigliere",
Expand Down
Original file line number Diff line number Diff line change
@@ -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?",
Expand Down
Loading

0 comments on commit 768e21c

Please sign in to comment.