How to use the @stryker-mutator/core.default function in @stryker-mutator/core

To help you get started, we’ve selected a few @stryker-mutator/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stryker-mutator / stryker / packages / grunt-stryker / tasks / stryker.js View on Github external
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);
    });
  });

@stryker-mutator/core

The extendable JavaScript mutation testing framework

Apache-2.0
Latest version published 11 days ago

Package Health Score

95 / 100
Full package analysis

Popular @stryker-mutator/core functions