diff --git a/.all-contributorsrc b/.all-contributorsrc
index 967da23..8405f74 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -14,6 +14,15 @@
"code"
]
},
+ {
+ "login": "Hardik0307",
+ "name": "Hardik Bagada",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/41434099?v=4",
+ "profile": "https://github.com/Hardik0307",
+ "contributions": [
+ "code"
+ ]
+ },
{
"login": "antonkomarev",
"name": "Anton Komarev",
@@ -32,6 +41,15 @@
"code"
]
}
+ {
+ "login": "g-savitha",
+ "name": "Savitha Gollamudi",
+ "avatar_url": "https://avatars0.githubusercontent.com/u/31612459?v=4",
+ "profile": "https://www.gsavitha.in",
+ "contributions": [
+ "code"
+ ]
+ }
],
"contributorsPerLine": 7,
"projectName": "github-profile-readme-generator",
diff --git a/.github/config.yml b/.github/config.yml
new file mode 100644
index 0000000..5d531f6
--- /dev/null
+++ b/.github/config.yml
@@ -0,0 +1,17 @@
+# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
+
+# Comment to be posted to on first time issues
+newIssueWelcomeComment: >
+ Thanks for opening your first issue here! Your contribution means alot. ๐ Join Discord Server (https://discord.gg/HHMs7Eg) for discussing issues, pull-requests, new features, etc.
+
+# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
+
+# Comment to be posted to on PRs from first time contributors in your repository
+newPRWelcomeComment: >
+ Thanks for opening this pull request! Make sure you have assigned an issue to this respective PR ๐
+
+# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
+
+# Comment to be posted to on pull requests merged by a first time user
+firstPRMergeComment: >
+ Congrats on merging your first pull request๐! Thanks alot for your contribution. ๐
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 41e2a16..65d45a1 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -3,7 +3,7 @@
When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.
-
+
diff --git a/README.md b/README.md
index 997ef14..1db2643 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@
-
+
Sarbik Betal ๐ป |
+ Hardik Bagada ๐ป |
Anton Komarev ๐ |
Sunit Shirke ๐ป |
+ Savitha Gollamudi ๐ป |
Developed with โค๏ธ in India ๐ฎ๐ณ -
\ No newline at end of file + diff --git a/__mocks__/file-mock.js b/__mocks__/file-mock.js new file mode 100644 index 0000000..e3b91b2 --- /dev/null +++ b/__mocks__/file-mock.js @@ -0,0 +1 @@ +module.exports = "test-file-stub" \ No newline at end of file diff --git a/__mocks__/gatsby.js b/__mocks__/gatsby.js new file mode 100644 index 0000000..f9083d7 --- /dev/null +++ b/__mocks__/gatsby.js @@ -0,0 +1,27 @@ +const React = require("react") +const gatsby = jest.requireActual("gatsby") + +module.exports = { + ...gatsby, + graphql: jest.fn(), + Link: jest.fn().mockImplementation( + // these props are invalid for an `a` tag + ({ + activeClassName, + activeStyle, + getProps, + innerRef, + partiallyActive, + ref, + replace, + to, + ...rest + }) => + React.createElement("a", { + ...rest, + href: to, + }) + ), + StaticQuery: jest.fn(), + useStaticQuery: jest.fn(), +} diff --git a/jest-preprocess.js b/jest-preprocess.js new file mode 100644 index 0000000..ee17080 --- /dev/null +++ b/jest-preprocess.js @@ -0,0 +1,5 @@ +const babelOptions = { + presets: ["babel-preset-gatsby"], +} + +module.exports = require("babel-jest").createTransformer(babelOptions) diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..f1518eb --- /dev/null +++ b/jest.config.js @@ -0,0 +1,15 @@ +module.exports = { + transform: { + "^.+\\.jsx?$": `