facebook/jest — pull request #103 by Dakuan (2014-08-04 10:35:32+00:00)
Title: string or object

This allows you to do things like this:

``` javascript
var jest = require('jest-cli'),
path = require('path'),
root = path.join(__dirname, '../../');

var c = {
rootDir: root,
scriptPreprocessor: "./spec/support/preprocessor.js",
unmockedModulePathPatterns: [
"node_modules/react"
],
testDirectoryName: "spec",
testPathIgnorePatterns: [
"node_modules",
"spec/support"
],
moduleFileExtensions: [
"js",
"json",
"react"
]
};

jest.runCLI({
config: c
}, root, function () {
console.log('done');
});

```

The objective of this change is to make it easier to write a gulp plugin without having to reimplement the work that the CLI code does.