Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
grunt.config.requires(filesProperty);
grunt.config.requires(mutateProperty);
}
var files = grunt.config.get(filesProperty);
if (files) {
options.files = grunt.file.expand(grunt.util.toArray(files));
}
var mutatedFiles = grunt.config.get(mutateProperty);
if (mutatedFiles) {
options.mutate = grunt.file.expand(grunt.util.toArray(mutatedFiles));
}
var done = this.async();
var stryker = new Stryker(options);
stryker.runMutationTest().then(function () {
var success = true;
if(process.exitCode > 0) {
success = false;
}
done(success);
}, function (error) {
grunt.fail.fatal("Stryker was unable to run the mutation test. " + error);
});
});