This commit is contained in:
David Kale
2020-09-08 13:25:36 -04:00
parent e4246d2b5b
commit 91fcbb0108
4227 changed files with 416837 additions and 457884 deletions

4
node_modules/jest-watcher/LICENSE generated vendored
View File

@@ -1,8 +1,6 @@
MIT License
For Jest software
Copyright (c) 2014-present, Facebook, Inc.
Copyright (c) Facebook, Inc. and its affiliates.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@@ -8,10 +8,12 @@ import { JestHookSubscriber, JestHookEmitter } from './types';
declare type AvailableHooks = 'onFileChange' | 'onTestRunComplete' | 'shouldRunTestSuite';
declare class JestHooks {
private _listeners;
private _subscriber;
private _emitter;
constructor();
isUsed(hook: AvailableHooks): number;
getSubscriber(): JestHookSubscriber;
getEmitter(): JestHookEmitter;
getSubscriber(): Readonly<JestHookSubscriber>;
getEmitter(): Readonly<JestHookEmitter>;
}
export default JestHooks;
//# sourceMappingURL=JestHooks.d.ts.map

View File

@@ -1 +1 @@
{"version":3,"file":"JestHooks.d.ts","sourceRoot":"","sources":["../src/JestHooks.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,kBAAkB,EAClB,eAAe,EAIhB,MAAM,SAAS,CAAC;AAEjB,aAAK,cAAc,GACf,cAAc,GACd,mBAAmB,GACnB,oBAAoB,CAAC;AAEzB,cAAM,SAAS;IACb,OAAO,CAAC,UAAU,CAIhB;;IAUF,MAAM,CAAC,IAAI,EAAE,cAAc;IAI3B,aAAa,IAAI,kBAAkB;IAcnC,UAAU,IAAI,eAAe;CAmB9B;AAED,eAAe,SAAS,CAAC"}
{"version":3,"file":"JestHooks.d.ts","sourceRoot":"","sources":["../src/JestHooks.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,kBAAkB,EAClB,eAAe,EAIhB,MAAM,SAAS,CAAC;AAEjB,aAAK,cAAc,GACf,cAAc,GACd,mBAAmB,GACnB,oBAAoB,CAAC;AAEzB,cAAM,SAAS;IACb,OAAO,CAAC,UAAU,CAIhB;IAEF,OAAO,CAAC,WAAW,CAAqB;IACxC,OAAO,CAAC,QAAQ,CAAkB;;IAwClC,MAAM,CAAC,IAAI,EAAE,cAAc;IAI3B,aAAa,IAAI,QAAQ,CAAC,kBAAkB,CAAC;IAI7C,UAAU,IAAI,QAAQ,CAAC,eAAe,CAAC;CAGxC;AAED,eAAe,SAAS,CAAC"}

View File

@@ -59,21 +59,20 @@ function _defineProperty(obj, key, value) {
*/
class JestHooks {
constructor() {
var _this = this;
_defineProperty(this, '_listeners', void 0);
_defineProperty(this, '_subscriber', void 0);
_defineProperty(this, '_emitter', void 0);
this._listeners = {
onFileChange: [],
onTestRunComplete: [],
shouldRunTestSuite: []
};
}
isUsed(hook) {
return this._listeners[hook] && this._listeners[hook].length;
}
getSubscriber() {
return {
this._subscriber = {
onFileChange: fn => {
this._listeners.onFileChange.push(fn);
},
@@ -84,12 +83,7 @@ class JestHooks {
this._listeners.shouldRunTestSuite.push(fn);
}
};
}
getEmitter() {
var _this = this;
return {
this._emitter = {
onFileChange: fs =>
this._listeners.onFileChange.forEach(listener => listener(fs)),
onTestRunComplete: results =>
@@ -114,6 +108,18 @@ class JestHooks {
})()
};
}
isUsed(hook) {
return this._listeners[hook] && this._listeners[hook].length;
}
getSubscriber() {
return this._subscriber;
}
getEmitter() {
return this._emitter;
}
}
var _default = JestHooks;

View File

@@ -1,45 +1,41 @@
{
"_args": [
[
"jest-watcher@24.8.0",
"/Users/pjquirk/Source/GitHub/actions/labeler"
]
],
"_development": true,
"_from": "jest-watcher@24.8.0",
"_id": "jest-watcher@24.8.0",
"_from": "jest-watcher@^24.9.0",
"_id": "jest-watcher@24.9.0",
"_inBundle": false,
"_integrity": "sha512-SBjwHt5NedQoVu54M5GEx7cl7IGEFFznvd/HNT8ier7cCAx/Qgu9ZMlaTQkvK22G1YOpcWBLQPFSImmxdn3DAw==",
"_integrity": "sha512-+/fLOfKPXXYJDYlks62/4R4GoT+GU1tYZed99JSCOsmzkkF7727RqKrjNAxtfO4YpGv11wybgRvCjR73lK2GZw==",
"_location": "/jest-watcher",
"_phantomChildren": {},
"_requested": {
"type": "version",
"type": "range",
"registry": true,
"raw": "jest-watcher@24.8.0",
"raw": "jest-watcher@^24.9.0",
"name": "jest-watcher",
"escapedName": "jest-watcher",
"rawSpec": "24.8.0",
"rawSpec": "^24.9.0",
"saveSpec": null,
"fetchSpec": "24.8.0"
"fetchSpec": "^24.9.0"
},
"_requiredBy": [
"/@jest/core"
],
"_resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-24.8.0.tgz",
"_spec": "24.8.0",
"_where": "/Users/pjquirk/Source/GitHub/actions/labeler",
"_resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-24.9.0.tgz",
"_shasum": "4b56e5d1ceff005f5b88e528dc9afc8dd4ed2b3b",
"_spec": "jest-watcher@^24.9.0",
"_where": "/Users/dakale/dev/GitHub/actions/labeler/node_modules/@jest/core",
"bugs": {
"url": "https://github.com/facebook/jest/issues"
},
"bundleDependencies": false,
"dependencies": {
"@jest/test-result": "^24.8.0",
"@jest/types": "^24.8.0",
"@types/yargs": "^12.0.9",
"@jest/test-result": "^24.9.0",
"@jest/types": "^24.9.0",
"@types/yargs": "^13.0.0",
"ansi-escapes": "^3.0.0",
"chalk": "^2.0.1",
"jest-util": "^24.8.0",
"jest-util": "^24.9.0",
"string-length": "^2.0.0"
},
"deprecated": false,
"description": "Delightful JavaScript Testing.",
"devDependencies": {
"@types/ansi-escapes": "^3.0.0",
@@ -48,7 +44,7 @@
"engines": {
"node": ">= 6"
},
"gitHead": "845728f24b3ef41e450595c384e9b5c9fdf248a4",
"gitHead": "9ad0f4bc6b8bdd94989804226c28c9960d9da7d1",
"homepage": "https://jestjs.io/",
"license": "MIT",
"main": "build/index.js",
@@ -61,5 +57,5 @@
"url": "git+https://github.com/facebook/jest.git",
"directory": "packages/jest-watcher"
},
"version": "24.8.0"
"version": "24.9.0"
}

View File

@@ -1,12 +0,0 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "build"
},
"references": [
{"path": "../jest-test-result"},
{"path": "../jest-types"},
{"path": "../jest-util"}
]
}

File diff suppressed because it is too large Load Diff