mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 02:16:45 +00:00
Fix.
This commit is contained in:
parent
596a6da241
commit
c1a589c5b6
7078 changed files with 1882834 additions and 319 deletions
60
node_modules/@jest/core/build/TestWatcher.js
generated
vendored
Normal file
60
node_modules/@jest/core/build/TestWatcher.js
generated
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
function _events() {
|
||||
const data = require('events');
|
||||
|
||||
_events = function _events() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _defineProperty(obj, key, value) {
|
||||
if (key in obj) {
|
||||
Object.defineProperty(obj, key, {
|
||||
value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
} else {
|
||||
obj[key] = value;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
class TestWatcher extends _events().EventEmitter {
|
||||
constructor({isWatchMode}) {
|
||||
super();
|
||||
|
||||
_defineProperty(this, 'state', void 0);
|
||||
|
||||
_defineProperty(this, '_isWatchMode', void 0);
|
||||
|
||||
this.state = {
|
||||
interrupted: false
|
||||
};
|
||||
this._isWatchMode = isWatchMode;
|
||||
}
|
||||
|
||||
setState(state) {
|
||||
Object.assign(this.state, state);
|
||||
this.emit('change', this.state);
|
||||
}
|
||||
|
||||
isInterrupted() {
|
||||
return this.state.interrupted;
|
||||
}
|
||||
|
||||
isWatchMode() {
|
||||
return this._isWatchMode;
|
||||
}
|
||||
}
|
||||
|
||||
exports.default = TestWatcher;
|
Loading…
Add table
Add a link
Reference in a new issue