Refactor karma configs and use grunt-karma