jest-watcher
Advanced tools
Comparing version 24.9.0 to 25.0.0
@@ -22,3 +22,3 @@ 'use strict'; | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _BaseWatchPlugin.default; | ||
@@ -29,3 +29,3 @@ } | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _JestHooks.default; | ||
@@ -36,3 +36,3 @@ } | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _PatternPrompt.default; | ||
@@ -43,3 +43,3 @@ } | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _types.AllowedConfigOptions; | ||
@@ -50,3 +50,3 @@ } | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _types.JestHookEmitter; | ||
@@ -57,3 +57,3 @@ } | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _types.JestHookSubscriber; | ||
@@ -64,3 +64,3 @@ } | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _types.ScrollOptions; | ||
@@ -71,3 +71,3 @@ } | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _types.UpdateConfigCallback; | ||
@@ -78,3 +78,3 @@ } | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _types.UsageData; | ||
@@ -85,3 +85,3 @@ } | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _types.WatchPlugin; | ||
@@ -92,3 +92,3 @@ } | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _types.WatchPluginClass; | ||
@@ -99,3 +99,3 @@ } | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _Prompt.default; | ||
@@ -118,3 +118,3 @@ } | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _constants[key]; | ||
@@ -136,3 +136,3 @@ } | ||
enumerable: true, | ||
get: function get() { | ||
get: function() { | ||
return _patternModeHelpers[key]; | ||
@@ -139,0 +139,0 @@ } |
@@ -7,3 +7,3 @@ /** | ||
*/ | ||
import { JestHookSubscriber, JestHookEmitter } from './types'; | ||
import { JestHookEmitter, JestHookSubscriber } from './types'; | ||
declare type AvailableHooks = 'onFileChange' | 'onTestRunComplete' | 'shouldRunTestSuite'; | ||
@@ -10,0 +10,0 @@ declare class JestHooks { |
@@ -8,34 +8,2 @@ 'use strict'; | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
try { | ||
var info = gen[key](arg); | ||
var value = info.value; | ||
} catch (error) { | ||
reject(error); | ||
return; | ||
} | ||
if (info.done) { | ||
resolve(value); | ||
} else { | ||
Promise.resolve(value).then(_next, _throw); | ||
} | ||
} | ||
function _asyncToGenerator(fn) { | ||
return function() { | ||
var self = this, | ||
args = arguments; | ||
return new Promise(function(resolve, reject) { | ||
var gen = fn.apply(self, args); | ||
function _next(value) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value); | ||
} | ||
function _throw(err) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err); | ||
} | ||
_next(undefined); | ||
}); | ||
}; | ||
} | ||
function _defineProperty(obj, key, value) { | ||
@@ -63,4 +31,2 @@ if (key in obj) { | ||
constructor() { | ||
var _this = this; | ||
_defineProperty(this, '_listeners', void 0); | ||
@@ -95,18 +61,10 @@ | ||
), | ||
shouldRunTestSuite: (function() { | ||
var _shouldRunTestSuite = _asyncToGenerator(function*(testSuiteInfo) { | ||
const result = yield Promise.all( | ||
_this._listeners.shouldRunTestSuite.map(listener => | ||
listener(testSuiteInfo) | ||
) | ||
); | ||
return result.every(Boolean); | ||
}); | ||
function shouldRunTestSuite(_x) { | ||
return _shouldRunTestSuite.apply(this, arguments); | ||
} | ||
return shouldRunTestSuite; | ||
})() | ||
shouldRunTestSuite: async testSuiteInfo => { | ||
const result = await Promise.all( | ||
this._listeners.shouldRunTestSuite.map(listener => | ||
listener(testSuiteInfo) | ||
) | ||
); | ||
return result.every(Boolean); | ||
} | ||
}; | ||
@@ -113,0 +71,0 @@ } |
@@ -11,3 +11,3 @@ 'use strict'; | ||
_chalk = function _chalk() { | ||
_chalk = function() { | ||
return data; | ||
@@ -14,0 +14,0 @@ }; |
@@ -11,3 +11,3 @@ 'use strict'; | ||
_chalk = function _chalk() { | ||
_chalk = function() { | ||
return data; | ||
@@ -14,0 +14,0 @@ }; |
@@ -11,3 +11,3 @@ 'use strict'; | ||
_chalk = function _chalk() { | ||
_chalk = function() { | ||
return data; | ||
@@ -22,3 +22,3 @@ }; | ||
_ansiEscapes = function _ansiEscapes() { | ||
_ansiEscapes = function() { | ||
return data; | ||
@@ -33,3 +33,3 @@ }; | ||
_stringLength = function _stringLength() { | ||
_stringLength = function() { | ||
return data; | ||
@@ -36,0 +36,0 @@ }; |
@@ -11,3 +11,3 @@ 'use strict'; | ||
_chalk = function _chalk() { | ||
_chalk = function() { | ||
return data; | ||
@@ -22,3 +22,3 @@ }; | ||
_ansiEscapes = function _ansiEscapes() { | ||
_ansiEscapes = function() { | ||
return data; | ||
@@ -33,3 +33,3 @@ }; | ||
_jestUtil = function _jestUtil() { | ||
_jestUtil = function() { | ||
return data; | ||
@@ -59,3 +59,3 @@ }; | ||
const CLEAR = _jestUtil().specialChars.CLEAR; | ||
const {CLEAR} = _jestUtil().specialChars; | ||
@@ -62,0 +62,0 @@ const usage = entity => |
{ | ||
"name": "jest-watcher", | ||
"description": "Delightful JavaScript Testing.", | ||
"version": "24.9.0", | ||
"version": "25.0.0", | ||
"main": "build/index.js", | ||
"dependencies": { | ||
"@jest/test-result": "^24.9.0", | ||
"@jest/types": "^24.9.0", | ||
"@jest/test-result": "^25.0.0", | ||
"@jest/types": "^25.0.0", | ||
"@types/yargs": "^13.0.0", | ||
"ansi-escapes": "^3.0.0", | ||
"ansi-escapes": "^4.2.1", | ||
"chalk": "^2.0.1", | ||
"jest-util": "^24.9.0", | ||
"string-length": "^2.0.0" | ||
"jest-util": "^25.0.0", | ||
"string-length": "^3.1.0" | ||
}, | ||
"devDependencies": { | ||
"@types/ansi-escapes": "^3.0.0", | ||
"@types/string-length": "^2.0.0" | ||
}, | ||
"repository": { | ||
@@ -28,3 +24,3 @@ "type": "git", | ||
"engines": { | ||
"node": ">= 6" | ||
"node": ">= 8" | ||
}, | ||
@@ -36,3 +32,3 @@ "homepage": "https://jestjs.io/", | ||
}, | ||
"gitHead": "9ad0f4bc6b8bdd94989804226c28c9960d9da7d1" | ||
"gitHead": "ff9269be05fd8316e95232198fce3463bf2f270e" | ||
} |
Sorry, the diff of this file is not supported yet
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
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
0
33765
838
+ Added@jest/console@25.5.0(transitive)
+ Added@jest/test-result@25.5.0(transitive)
+ Added@jest/types@25.5.0(transitive)
+ Added@types/yargs@15.0.19(transitive)
+ Addedansi-escapes@4.3.2(transitive)
+ Addedansi-regex@4.1.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedchalk@3.0.0(transitive)
+ Addedcollect-v8-coverage@1.0.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedjest-message-util@25.5.0(transitive)
+ Addedjest-util@25.5.0(transitive)
+ Addedmake-dir@3.1.0(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedslash@3.0.0(transitive)
+ Addedstring-length@3.1.0(transitive)
+ Addedstrip-ansi@5.2.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedtype-fest@0.21.3(transitive)
- Removed@jest/console@24.9.0(transitive)
- Removed@jest/fake-timers@24.9.0(transitive)
- Removed@jest/source-map@24.9.0(transitive)
- Removed@jest/test-result@24.9.0(transitive)
- Removed@jest/types@24.9.0(transitive)
- Removedansi-escapes@3.2.0(transitive)
- Removedansi-regex@3.0.1(transitive)
- Removedarr-diff@4.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarr-union@3.1.0(transitive)
- Removedarray-unique@0.3.2(transitive)
- Removedassign-symbols@1.0.0(transitive)
- Removedatob@2.1.2(transitive)
- Removedbase@0.11.2(transitive)
- Removedbraces@2.3.2(transitive)
- Removedcache-base@1.0.1(transitive)
- Removedcallsites@3.1.0(transitive)
- Removedclass-utils@0.3.6(transitive)
- Removedcollection-visit@1.0.0(transitive)
- Removedcomponent-emitter@1.3.1(transitive)
- Removedcopy-descriptor@0.1.1(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddecode-uri-component@0.2.2(transitive)
- Removeddefine-property@0.2.51.0.02.0.2(transitive)
- Removedexpand-brackets@2.1.4(transitive)
- Removedextend-shallow@2.0.13.0.2(transitive)
- Removedextglob@2.0.4(transitive)
- Removedfill-range@4.0.0(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfragment-cache@0.2.1(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-value@2.0.6(transitive)
- Removedhas-value@0.3.11.0.0(transitive)
- Removedhas-values@0.1.41.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedis-accessor-descriptor@1.0.1(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-data-descriptor@1.0.1(transitive)
- Removedis-descriptor@0.1.71.0.3(transitive)
- Removedis-extendable@0.1.11.0.1(transitive)
- Removedis-number@3.0.0(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedis-windows@1.0.2(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisobject@2.1.03.0.1(transitive)
- Removedjest-message-util@24.9.0(transitive)
- Removedjest-mock@24.9.0(transitive)
- Removedjest-util@24.9.0(transitive)
- Removedkind-of@3.2.24.0.06.0.3(transitive)
- Removedmap-cache@0.2.2(transitive)
- Removedmap-visit@1.0.0(transitive)
- Removedmicromatch@3.1.10(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmixin-deep@1.3.2(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedms@2.0.0(transitive)
- Removednanomatch@1.2.13(transitive)
- Removedobject-copy@0.1.0(transitive)
- Removedobject-visit@1.0.1(transitive)
- Removedobject.pick@1.3.0(transitive)
- Removedpascalcase@0.1.1(transitive)
- Removedposix-character-classes@0.1.1(transitive)
- Removedregex-not@1.0.2(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedresolve-url@0.2.1(transitive)
- Removedret@0.1.15(transitive)
- Removedsafe-regex@1.1.0(transitive)
- Removedset-value@2.0.1(transitive)
- Removedslash@2.0.0(transitive)
- Removedsnapdragon@0.8.2(transitive)
- Removedsnapdragon-node@2.1.1(transitive)
- Removedsnapdragon-util@3.0.1(transitive)
- Removedsource-map@0.5.70.6.1(transitive)
- Removedsource-map-resolve@0.5.3(transitive)
- Removedsource-map-url@0.4.1(transitive)
- Removedsplit-string@3.1.0(transitive)
- Removedstatic-extend@0.1.2(transitive)
- Removedstring-length@2.0.0(transitive)
- Removedstrip-ansi@4.0.0(transitive)
- Removedto-object-path@0.3.0(transitive)
- Removedto-regex@3.0.2(transitive)
- Removedto-regex-range@2.1.1(transitive)
- Removedunion-value@1.0.1(transitive)
- Removedunset-value@1.0.0(transitive)
- Removedurix@0.1.0(transitive)
- Removeduse@3.1.1(transitive)
Updated@jest/test-result@^25.0.0
Updated@jest/types@^25.0.0
Updatedansi-escapes@^4.2.1
Updatedjest-util@^25.0.0
Updatedstring-length@^3.1.0