Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-cli

Package Overview
Dependencies
Maintainers
1
Versions
391
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-cli - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

src/.haste_cache_dir/cache-jest-cli

18

package.json
{
"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"
}

14

README.md

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc