Hacktoberfest 🎃🃏 — get involved in OSS with jest-extended

Want to get involved in open source software but don’t know where to begin? We’ve all been there! Hacktoberfest is a great incentive for people to start contributing back to the OSS community and you can get yourself some free swag 👕. With the clock ticking down on Hacktoberfest — I’ve got a new open source project that you’re more than to contribute to! jest-extended 🎉

Do you use Facebook’s amazing testing library Jest? If you haven’t then I definitely recommend you give it a try — amongst other things the developer experience of using it is second to none.

You can use expect.extend to add your own matchers (assertions) to Jest. For example, let’s say you wanted to check a value is true. You could abstract that into a toBeTrue matcher:

example matcher toBeTrue

This extend API got me thinking that it would be cool to have more specific Jest matchers. So I’ve decided to open source jest-extendedas a new project to accomplish this.

In the spirit of Hacktoberfect I have created a series of issues for new matchers that I think would be useful to have as part of jest-extended but you can always raise an issue if you can think of others 🙂. I’ve labelled them with New MatcherBeginner Friendly and Hacktoberfest.

Feel free to contribute by sending a pull request for any of the issues that aren’t already being worked on, just put a comment on the issue that you would like to work on it so that others don’t too. If you’re new to GitHub and sending pull requests, then I recommend you check out Kent C. Dodds’s egghead course on contributing to open source projects.

Each new matcher should be beginner friendly and I’m more than happy to help out if you get stuck, so no excuses not to get involved 😜. A good place to start is the contributing guide.