Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
quiz1 /
node_modules /
@jest /
core /
build /
[ HOME SHELL ]
Name
Size
Permission
Action
assets
[ DIR ]
dr-xr-xr-x
cli
[ DIR ]
dr-xr-xr-x
lib
[ DIR ]
dr-xr-xr-x
plugins
[ DIR ]
dr-xr-xr-x
FailedTestsCache.d.ts
450
B
-rw-rw-rw-
FailedTestsCache.js
1.42
KB
-rw-rw-rw-
FailedTestsInteractiveMode.d.t...
1.05
KB
-rw-rw-rw-
FailedTestsInteractiveMode.js
5.52
KB
-rw-rw-rw-
ReporterDispatcher.d.ts
1.03
KB
-rw-rw-rw-
ReporterDispatcher.js
2.55
KB
-rw-rw-rw-
SearchSource.d.ts
1.9
KB
-rw-rw-rw-
SearchSource.js
11.64
KB
-rw-rw-rw-
SnapshotInteractiveMode.d.ts
1.06
KB
-rw-rw-rw-
SnapshotInteractiveMode.js
7.24
KB
-rw-rw-rw-
TestNamePatternPrompt.d.ts
762
B
-rw-rw-rw-
TestNamePatternPrompt.js
1.62
KB
-rw-rw-rw-
TestPathPatternPrompt.d.ts
939
B
-rw-rw-rw-
TestPathPatternPrompt.js
1.54
KB
-rw-rw-rw-
TestScheduler.d.ts
1.65
KB
-rw-rw-rw-
TestScheduler.js
15.02
KB
-rw-rw-rw-
TestWatcher.d.ts
608
B
-rw-rw-rw-
TestWatcher.js
1.13
KB
-rw-rw-rw-
collectHandles.d.ts
504
B
-rw-rw-rw-
collectHandles.js
7.24
KB
-rw-rw-rw-
getChangedFilesPromise.d.ts
465
B
-rw-rw-rw-
getChangedFilesPromise.js
1.72
KB
-rw-rw-rw-
getConfigsOfProjectsToRun.d.ts
415
B
-rw-rw-rw-
getConfigsOfProjectsToRun.js
824
B
-rw-rw-rw-
getNoTestFound.d.ts
406
B
-rw-rw-rw-
getNoTestFound.js
1.52
KB
-rw-rw-rw-
getNoTestFoundFailed.d.ts
342
B
-rw-rw-rw-
getNoTestFoundFailed.js
1.06
KB
-rw-rw-rw-
getNoTestFoundPassWithNoTests....
275
B
-rw-rw-rw-
getNoTestFoundPassWithNoTests....
697
B
-rw-rw-rw-
getNoTestFoundRelatedToChanged...
357
B
-rw-rw-rw-
getNoTestFoundRelatedToChanged...
1.23
KB
-rw-rw-rw-
getNoTestFoundVerbose.d.ts
413
B
-rw-rw-rw-
getNoTestFoundVerbose.js
2.5
KB
-rw-rw-rw-
getNoTestsFoundMessage.d.ts
414
B
-rw-rw-rw-
getNoTestsFoundMessage.js
1.46
KB
-rw-rw-rw-
getProjectDisplayName.d.ts
357
B
-rw-rw-rw-
getProjectDisplayName.js
598
B
-rw-rw-rw-
getProjectNamesMissingWarning....
373
B
-rw-rw-rw-
getProjectNamesMissingWarning....
1.26
KB
-rw-rw-rw-
getSelectProjectsMessage.d.ts
356
B
-rw-rw-rw-
getSelectProjectsMessage.js
1.65
KB
-rw-rw-rw-
jest.d.ts
462
B
-rw-rw-rw-
jest.js
1.09
KB
-rw-rw-rw-
pluralize.d.ts
298
B
-rw-rw-rw-
pluralize.js
421
B
-rw-rw-rw-
runGlobalHook.d.ts
516
B
-rw-rw-rw-
runGlobalHook.js
3.61
KB
-rw-rw-rw-
runJest.d.ts
1.19
KB
-rw-rw-rw-
runJest.js
9.93
KB
-rw-rw-rw-
testSchedulerHelper.d.ts
467
B
-rw-rw-rw-
testSchedulerHelper.js
1.63
KB
-rw-rw-rw-
types.d.ts
1.1
KB
-rw-rw-rw-
types.js
14
B
-rw-rw-rw-
version.d.ts
256
B
-rw-rw-rw-
version.js
473
B
-rw-rw-rw-
watch.d.ts
714
B
-rw-rw-rw-
watch.js
19.49
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : SnapshotInteractiveMode.js
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.default = void 0; function _ansiEscapes() { const data = _interopRequireDefault(require('ansi-escapes')); _ansiEscapes = function () { return data; }; return data; } function _chalk() { const data = _interopRequireDefault(require('chalk')); _chalk = function () { return data; }; return data; } function _jestUtil() { const data = require('jest-util'); _jestUtil = function () { return data; }; return data; } function _jestWatcher() { const data = require('jest-watcher'); _jestWatcher = function () { return data; }; return data; } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {default: obj}; } 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; } const {ARROW, CLEAR} = _jestUtil().specialChars; class SnapshotInteractiveMode { constructor(pipe) { _defineProperty(this, '_pipe', void 0); _defineProperty(this, '_isActive', void 0); _defineProperty(this, '_updateTestRunnerConfig', void 0); _defineProperty(this, '_testAssertions', void 0); _defineProperty(this, '_countPaths', void 0); _defineProperty(this, '_skippedNum', void 0); this._pipe = pipe; this._isActive = false; this._skippedNum = 0; } isActive() { return this._isActive; } getSkippedNum() { return this._skippedNum; } _clearTestSummary() { this._pipe.write(_ansiEscapes().default.cursorUp(6)); this._pipe.write(_ansiEscapes().default.eraseDown); } _drawUIProgress() { this._clearTestSummary(); const numPass = this._countPaths - this._testAssertions.length; const numRemaining = this._countPaths - numPass - this._skippedNum; let stats = _chalk().default.bold.dim( (0, _jestUtil().pluralize)('snapshot', numRemaining) + ' remaining' ); if (numPass) { stats += ', ' + _chalk().default.bold.green( (0, _jestUtil().pluralize)('snapshot', numPass) + ' updated' ); } if (this._skippedNum) { stats += ', ' + _chalk().default.bold.yellow( (0, _jestUtil().pluralize)('snapshot', this._skippedNum) + ' skipped' ); } const messages = [ '\n' + _chalk().default.bold('Interactive Snapshot Progress'), ARROW + stats, '\n' + _chalk().default.bold('Watch Usage'), _chalk().default.dim(ARROW + 'Press ') + 'u' + _chalk().default.dim(' to update failing snapshots for this test.'), _chalk().default.dim(ARROW + 'Press ') + 's' + _chalk().default.dim(' to skip the current test.'), _chalk().default.dim(ARROW + 'Press ') + 'q' + _chalk().default.dim(' to quit Interactive Snapshot Mode.'), _chalk().default.dim(ARROW + 'Press ') + 'Enter' + _chalk().default.dim(' to trigger a test run.') ]; this._pipe.write(messages.filter(Boolean).join('\n') + '\n'); } _drawUIDoneWithSkipped() { this._pipe.write(CLEAR); const numPass = this._countPaths - this._testAssertions.length; let stats = _chalk().default.bold.dim( (0, _jestUtil().pluralize)('snapshot', this._countPaths) + ' reviewed' ); if (numPass) { stats += ', ' + _chalk().default.bold.green( (0, _jestUtil().pluralize)('snapshot', numPass) + ' updated' ); } if (this._skippedNum) { stats += ', ' + _chalk().default.bold.yellow( (0, _jestUtil().pluralize)('snapshot', this._skippedNum) + ' skipped' ); } const messages = [ '\n' + _chalk().default.bold('Interactive Snapshot Result'), ARROW + stats, '\n' + _chalk().default.bold('Watch Usage'), _chalk().default.dim(ARROW + 'Press ') + 'r' + _chalk().default.dim(' to restart Interactive Snapshot Mode.'), _chalk().default.dim(ARROW + 'Press ') + 'q' + _chalk().default.dim(' to quit Interactive Snapshot Mode.') ]; this._pipe.write(messages.filter(Boolean).join('\n') + '\n'); } _drawUIDone() { this._pipe.write(CLEAR); const numPass = this._countPaths - this._testAssertions.length; let stats = _chalk().default.bold.dim( (0, _jestUtil().pluralize)('snapshot', this._countPaths) + ' reviewed' ); if (numPass) { stats += ', ' + _chalk().default.bold.green( (0, _jestUtil().pluralize)('snapshot', numPass) + ' updated' ); } const messages = [ '\n' + _chalk().default.bold('Interactive Snapshot Result'), ARROW + stats, '\n' + _chalk().default.bold('Watch Usage'), _chalk().default.dim(ARROW + 'Press ') + 'Enter' + _chalk().default.dim(' to return to watch mode.') ]; this._pipe.write(messages.filter(Boolean).join('\n') + '\n'); } _drawUIOverlay() { if (this._testAssertions.length === 0) { return this._drawUIDone(); } if (this._testAssertions.length - this._skippedNum === 0) { return this._drawUIDoneWithSkipped(); } return this._drawUIProgress(); } put(key) { switch (key) { case 's': if (this._skippedNum === this._testAssertions.length) break; this._skippedNum += 1; // move skipped test to the end this._testAssertions.push(this._testAssertions.shift()); if (this._testAssertions.length - this._skippedNum > 0) { this._run(false); } else { this._drawUIDoneWithSkipped(); } break; case 'u': this._run(true); break; case 'q': case _jestWatcher().KEYS.ESCAPE: this.abort(); break; case 'r': this.restart(); break; case _jestWatcher().KEYS.ENTER: if (this._testAssertions.length === 0) { this.abort(); } else { this._run(false); } break; default: break; } } abort() { this._isActive = false; this._skippedNum = 0; this._updateTestRunnerConfig(null, false); } restart() { this._skippedNum = 0; this._countPaths = this._testAssertions.length; this._run(false); } updateWithResults(results) { const hasSnapshotFailure = !!results.snapshot.failure; if (hasSnapshotFailure) { this._drawUIOverlay(); return; } this._testAssertions.shift(); if (this._testAssertions.length - this._skippedNum === 0) { this._drawUIOverlay(); return; } // Go to the next test this._run(false); } _run(shouldUpdateSnapshot) { const testAssertion = this._testAssertions[0]; this._updateTestRunnerConfig(testAssertion, shouldUpdateSnapshot); } run(failedSnapshotTestAssertions, onConfigChange) { if (!failedSnapshotTestAssertions.length) { return; } this._testAssertions = [...failedSnapshotTestAssertions]; this._countPaths = this._testAssertions.length; this._updateTestRunnerConfig = onConfigChange; this._isActive = true; this._run(false); } } exports.default = SnapshotInteractiveMode;
Close