The solution for me was that I had forgotten to mock some dependencies used in the child component in the test for the parent component (Next image service).