Koans are a great way to learn a new language or library. These koans will teach you how to use unmock in typescript.
First, install the dependencies.
$ yarnThen, run the first koan.
$ yarn test-1It will fail, and there are comments in the first test file with hints on how to fix it.
Once you get this koan to pass, congratulate yourself! Then, run the second koan.
$ yarn test-2And so on and so forth until you have run all of the koans.
Then, when you are done, you can bask in the glory of lots of correct koans by running the following.
$ yarn testIf you've completed the koans and want to share your answers, just make a PR! Check out some of the branches for inspiration. Some people also use PRs for help if/when they get stuck - thanks to everyone who has given a hand.
Some people that have shared their branches have added extra tests. If you want your test to be merged into the main branch, please make a PR to master with the "wrong" version and answers with the correction.
Please note that this project is governed by the Meeshkan Community Code of Conduct. By participating in this project, you agree to abide by its terms.