Running the generator with the option --gruntfile-path . creates broken gruntfile. The file is missing the loadNpmTasks tasks command, which means that karma is not loaded and is not usable.
Proposed fix:
Add to gruntfile: grunt.loadNpmTasks('grunt-karma');
Overview
Running the generator with the option
--gruntfile-path .
creates broken gruntfile. The file is missing theloadNpmTasks
tasks command, which means that karma is not loaded and is not usable.Proposed fix:
Add to gruntfile:
grunt.loadNpmTasks('grunt-karma');