Separating unit and integration tests in Jest
Update (October 2019)
Before reading this post, you should check this package by Eugene Manuilov which is probably the simplest solution for most cases. As he said in the comments:
These were the top 10 stories published by Coding Stones; you can also dive into yearly archives: 2015, 2016, 2017, and 2018.