Foldit provides a command to fold all it, and other spec definition methods. It's designed with Javascripts Mocha/Jasmine framework in mind, but there's no reason it won't work on other languages and frameworks. By default the following methods will be folded: it, before, beforeEach, after, afterEach
Usage
In a spec file, open the command pallet (Ctrl+Shirt+P) and type "Fold spec methods".
You can configure a keybind for it by adding to keybindings.json the following: