{"repo":"atlassian/jest-in-case","free":true,"listed":false,"github":"https://github.com/atlassian/jest-in-case","clone":"git clone https://github.com/atlassian/jest-in-case.git","description":"Jest utility for creating variations of the same test","language":"JavaScript","stars":1059,"topics":["jest","testing","test"],"license":"MIT","category":"dev-tools","readme_excerpt":"jest-in-case Jest utility for creating variations of the same test Example Installation Usage In your Jest tests, import cases from jest-in-case . Then you can call cases with a title , a tester , and some testCases . testCases can either be an array of objects with a name property: Or an object of objects with the names as the keys: Inside of a test case you can put whatever properties you want, except for name , only , or skip : - name is passed to test(name, fn) to become the name of your test - When only is set to true it will use Jest's test.only function - When skip is set to true it will use Jest's test.skip function The tester function is called on each test case with your options: Your tester function works just like functions passed to Jest's test function do (Just with a prepended argument):","default_branch":null,"files":null,"tree":[],"storefront":"/r/atlassian","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/atlassian/jest-in-case/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}