Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "jest-cli", | ||
"version": "0.1.0", | ||
"description": "Painless JavaScript Unit Testing.", | ||
"version": "0.1.1", | ||
"dependencies": { | ||
@@ -39,3 +40,16 @@ "coffee-script": "1.7.1", | ||
] | ||
} | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/facebook/jest/issues" | ||
}, | ||
"homepage": "http://facebook.github.io/jest/", | ||
"keywords": [ | ||
"facebook", | ||
"jest", | ||
"test", | ||
"unit", | ||
"jasmine", | ||
"mock" | ||
], | ||
"license": "BSD" | ||
} |
@@ -5,3 +5,3 @@ # [Jest](http://facebook.github.io/jest/) | ||
- **Familiar Approach**: Built on top of Jasmine test framework, a familiar BDD testing environment | ||
- **Familiar Approach**: Built on top of the Jasmine test framework, using familiar expect(value).toBe(other) assertions | ||
@@ -61,11 +61,13 @@ - **Mock by Default**: Automatically mocks CommonJS modules returned by require(), making most existing code testable | ||
- [`jest`](http://facebook.github.io/jest/docs/api.html#the-jest-object) | ||
- `require(module)` | ||
- `require.requireActual(module)` | ||
- `afterEach(fn)` | ||
- `beforeEach(fn)` | ||
- `describe(name, fn)` | ||
- `beforeEach(fn)` | ||
- `afterEach(fn)` | ||
- `it(name, fn)` | ||
- `it.only(name, fn)` executes [only](https://github.com/davemo/jasmine-only) this test. Useful when investigating a failure | ||
- [`jest`](http://facebook.github.io/jest/docs/api.html#the-jest-object) | ||
- `pit(name, fn)` [helper](https://www.npmjs.org/package/jasmine-pit) for promises | ||
- `require(module)` | ||
- `require.requireActual(module)` | ||
- `xdescribe(name, fn)` | ||
- `xit(name, fn)` | ||
@@ -72,0 +74,0 @@ #### `expect(value)` |
@@ -17,2 +17,3 @@ /** | ||
modulePathIgnorePatterns: ['/node_modules/'], | ||
testDirectoryName: '__tests__', | ||
testEnvironment: require.resolve('../JSDomEnvironment'), | ||
@@ -62,2 +63,6 @@ testFileExtensions: ['js'], | ||
function escapeStrForRegex(str) { | ||
return str.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); | ||
} | ||
/** | ||
@@ -201,2 +206,3 @@ * Given the coverage info for a single file (as output by | ||
case 'setupJSTestLoaderOptions': | ||
case 'testDirectoryName': | ||
case 'testFileExtensions': | ||
@@ -402,2 +408,3 @@ value = config[key]; | ||
exports.escapeStrForRegex = escapeStrForRegex; | ||
exports.getLineCoverageFromCoverageInfo = getLineCoverageFromCoverageInfo; | ||
@@ -404,0 +411,0 @@ exports.getLinePercentCoverageFromCoverageInfo = |
@@ -74,3 +74,3 @@ /** | ||
.map(function(dir) { | ||
return dir.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); | ||
return utils.escapeStrForRegex(dir); | ||
}) | ||
@@ -80,3 +80,6 @@ .join('|') | ||
this._nodeHasteTestRegExp = new RegExp( | ||
'/__tests__/.*\\.(' + config.testFileExtensions.join('|') + ')$' | ||
'/' + utils.escapeStrForRegex(config.testDirectoryName) + '/' + | ||
'.*\\.(' + | ||
utils.escapeStrForRegex(config.testFileExtensions.join('|')) + | ||
')$' | ||
); | ||
@@ -83,0 +86,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
279759
46
7455
1
93
1