mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-20 21:14:45 +00:00
.
This commit is contained in:
parent
a004f0ae58
commit
fc725ba36b
7280 changed files with 19 additions and 1796407 deletions
10
node_modules/jest-util/build/ErrorWithStack.d.ts
generated
vendored
10
node_modules/jest-util/build/ErrorWithStack.d.ts
generated
vendored
|
@ -1,10 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
export default class ErrorWithStack extends Error {
|
||||
constructor(message: string | undefined, callsite: Function);
|
||||
}
|
||||
//# sourceMappingURL=ErrorWithStack.d.ts.map
|
1
node_modules/jest-util/build/ErrorWithStack.d.ts.map
generated
vendored
1
node_modules/jest-util/build/ErrorWithStack.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"ErrorWithStack.d.ts","sourceRoot":"","sources":["../src/ErrorWithStack.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,KAAK;gBACnC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,QAAQ;CAM5D"}
|
24
node_modules/jest-util/build/ErrorWithStack.js
generated
vendored
24
node_modules/jest-util/build/ErrorWithStack.js
generated
vendored
|
@ -1,24 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
class ErrorWithStack extends Error {
|
||||
constructor(message, callsite) {
|
||||
super(message);
|
||||
|
||||
if (Error.captureStackTrace) {
|
||||
Error.captureStackTrace(this, callsite);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
exports.default = ErrorWithStack;
|
10
node_modules/jest-util/build/clearLine.d.ts
generated
vendored
10
node_modules/jest-util/build/clearLine.d.ts
generated
vendored
|
@ -1,10 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
/// <reference types="node" />
|
||||
declare const _default: (stream: NodeJS.WritableStream) => void;
|
||||
export default _default;
|
||||
//# sourceMappingURL=clearLine.d.ts.map
|
1
node_modules/jest-util/build/clearLine.d.ts.map
generated
vendored
1
node_modules/jest-util/build/clearLine.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"clearLine.d.ts","sourceRoot":"","sources":["../src/clearLine.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;;AAEH,wBAIE"}
|
20
node_modules/jest-util/build/clearLine.js
generated
vendored
20
node_modules/jest-util/build/clearLine.js
generated
vendored
|
@ -1,20 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
var _default = stream => {
|
||||
if (process.stdout.isTTY) {
|
||||
stream.write('\x1b[999D\x1b[K');
|
||||
}
|
||||
};
|
||||
|
||||
exports.default = _default;
|
8
node_modules/jest-util/build/convertDescriptorToString.d.ts
generated
vendored
8
node_modules/jest-util/build/convertDescriptorToString.d.ts
generated
vendored
|
@ -1,8 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
export default function convertDescriptorToString<T extends number | string | Function | undefined>(descriptor: T): T | string;
|
||||
//# sourceMappingURL=convertDescriptorToString.d.ts.map
|
1
node_modules/jest-util/build/convertDescriptorToString.d.ts.map
generated
vendored
1
node_modules/jest-util/build/convertDescriptorToString.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"convertDescriptorToString.d.ts","sourceRoot":"","sources":["../src/convertDescriptorToString.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAC/C,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,EAChD,UAAU,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM,CA0B3B"}
|
39
node_modules/jest-util/build/convertDescriptorToString.js
generated
vendored
39
node_modules/jest-util/build/convertDescriptorToString.js
generated
vendored
|
@ -1,39 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = convertDescriptorToString;
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
// See: https://github.com/facebook/jest/pull/5154
|
||||
function convertDescriptorToString(descriptor) {
|
||||
if (
|
||||
typeof descriptor === 'string' ||
|
||||
typeof descriptor === 'number' ||
|
||||
descriptor === undefined
|
||||
) {
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
if (typeof descriptor !== 'function') {
|
||||
throw new Error('describe expects a class, function, number, or string.');
|
||||
}
|
||||
|
||||
if (descriptor.name !== undefined) {
|
||||
return descriptor.name;
|
||||
} // Fallback for old browsers, pardon Flow
|
||||
|
||||
const stringified = descriptor.toString();
|
||||
const typeDescriptorMatch = stringified.match(/class|function/);
|
||||
const indexOfNameSpace = // @ts-ignore: typeDescriptorMatch exists
|
||||
typeDescriptorMatch.index + typeDescriptorMatch[0].length;
|
||||
const indexOfNameAfterSpace = stringified.search(/\(|\{/);
|
||||
const name = stringified.substring(indexOfNameSpace, indexOfNameAfterSpace);
|
||||
return name.trim();
|
||||
}
|
9
node_modules/jest-util/build/createDirectory.d.ts
generated
vendored
9
node_modules/jest-util/build/createDirectory.d.ts
generated
vendored
|
@ -1,9 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
import { Config } from '@jest/types';
|
||||
export default function createDirectory(path: Config.Path): void;
|
||||
//# sourceMappingURL=createDirectory.d.ts.map
|
1
node_modules/jest-util/build/createDirectory.d.ts.map
generated
vendored
1
node_modules/jest-util/build/createDirectory.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"createDirectory.d.ts","sourceRoot":"","sources":["../src/createDirectory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AAEnC,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,QAQxD"}
|
36
node_modules/jest-util/build/createDirectory.js
generated
vendored
36
node_modules/jest-util/build/createDirectory.js
generated
vendored
|
@ -1,36 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = createDirectory;
|
||||
|
||||
function _mkdirp() {
|
||||
const data = _interopRequireDefault(require('mkdirp'));
|
||||
|
||||
_mkdirp = function _mkdirp() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {default: obj};
|
||||
}
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
function createDirectory(path) {
|
||||
try {
|
||||
_mkdirp().default.sync(path, '777');
|
||||
} catch (e) {
|
||||
if (e.code !== 'EEXIST') {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
8
node_modules/jest-util/build/createProcessObject.d.ts
generated
vendored
8
node_modules/jest-util/build/createProcessObject.d.ts
generated
vendored
|
@ -1,8 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
export default function (): any;
|
||||
//# sourceMappingURL=createProcessObject.d.ts.map
|
1
node_modules/jest-util/build/createProcessObject.d.ts.map
generated
vendored
1
node_modules/jest-util/build/createProcessObject.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"createProcessObject.d.ts","sourceRoot":"","sources":["../src/createProcessObject.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA4EH,MAAM,CAAC,OAAO,kBAkCb"}
|
121
node_modules/jest-util/build/createProcessObject.js
generated
vendored
121
node_modules/jest-util/build/createProcessObject.js
generated
vendored
|
@ -1,121 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = _default;
|
||||
|
||||
var _deepCyclicCopy = _interopRequireDefault(require('./deepCyclicCopy'));
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {default: obj};
|
||||
}
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
const BLACKLIST = new Set(['env', 'mainModule', '_events']);
|
||||
const isWin32 = process.platform === 'win32';
|
||||
const proto = Object.getPrototypeOf(process.env); // The "process.env" object has a bunch of particularities: first, it does not
|
||||
// directly extend from Object; second, it converts any assigned value to a
|
||||
// string; and third, it is case-insensitive in Windows. We use a proxy here to
|
||||
// mimic it (see https://nodejs.org/api/process.html#process_process_env).
|
||||
|
||||
function createProcessEnv() {
|
||||
const real = Object.create(proto);
|
||||
const lookup = {};
|
||||
|
||||
function deletePropertyWin32(_target, key) {
|
||||
for (const name in real) {
|
||||
if (real.hasOwnProperty(name)) {
|
||||
if (typeof key === 'string') {
|
||||
if (name.toLowerCase() === key.toLowerCase()) {
|
||||
delete real[name];
|
||||
delete lookup[name.toLowerCase()];
|
||||
}
|
||||
} else {
|
||||
if (key === name) {
|
||||
delete real[name];
|
||||
delete lookup[name];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function deleteProperty(_target, key) {
|
||||
delete real[key];
|
||||
delete lookup[key];
|
||||
return true;
|
||||
}
|
||||
|
||||
function getProperty(_target, key) {
|
||||
return real[key];
|
||||
}
|
||||
|
||||
function getPropertyWin32(_target, key) {
|
||||
if (typeof key === 'string') {
|
||||
return lookup[key in proto ? key : key.toLowerCase()];
|
||||
} else {
|
||||
return real[key];
|
||||
}
|
||||
}
|
||||
|
||||
const proxy = new Proxy(real, {
|
||||
deleteProperty: isWin32 ? deletePropertyWin32 : deleteProperty,
|
||||
get: isWin32 ? getPropertyWin32 : getProperty,
|
||||
|
||||
set(_target, key, value) {
|
||||
const strValue = '' + value;
|
||||
|
||||
if (typeof key === 'string') {
|
||||
lookup[key.toLowerCase()] = strValue;
|
||||
}
|
||||
|
||||
real[key] = strValue;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
return Object.assign(proxy, process.env);
|
||||
}
|
||||
|
||||
function _default() {
|
||||
const process = require('process');
|
||||
|
||||
const newProcess = (0, _deepCyclicCopy.default)(process, {
|
||||
blacklist: BLACKLIST,
|
||||
keepPrototype: true
|
||||
});
|
||||
|
||||
try {
|
||||
// This fails on Node 12, but it's already set to 'process'
|
||||
newProcess[Symbol.toStringTag] = 'process';
|
||||
} catch (e) {
|
||||
// Make sure it's actually set instead of potentially ignoring errors
|
||||
if (newProcess[Symbol.toStringTag] !== 'process') {
|
||||
e.message =
|
||||
'Unable to set toStringTag on process. Please open up an issue at https://github.com/facebook/jest\n\n' +
|
||||
e.message;
|
||||
throw e;
|
||||
}
|
||||
} // Sequentially execute all constructors over the object.
|
||||
|
||||
let proto = process;
|
||||
|
||||
while ((proto = Object.getPrototypeOf(proto))) {
|
||||
if (typeof proto.constructor === 'function') {
|
||||
proto.constructor.call(newProcess);
|
||||
}
|
||||
}
|
||||
|
||||
newProcess.env = createProcessEnv();
|
||||
|
||||
newProcess.send = () => {};
|
||||
|
||||
return newProcess;
|
||||
}
|
12
node_modules/jest-util/build/deepCyclicCopy.d.ts
generated
vendored
12
node_modules/jest-util/build/deepCyclicCopy.d.ts
generated
vendored
|
@ -1,12 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
export declare type DeepCyclicCopyOptions = {
|
||||
blacklist?: Set<string>;
|
||||
keepPrototype?: boolean;
|
||||
};
|
||||
export default function deepCyclicCopy<T>(value: T, options?: DeepCyclicCopyOptions, cycles?: WeakMap<any, any>): T;
|
||||
//# sourceMappingURL=deepCyclicCopy.d.ts.map
|
1
node_modules/jest-util/build/deepCyclicCopy.d.ts.map
generated
vendored
1
node_modules/jest-util/build/deepCyclicCopy.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"deepCyclicCopy.d.ts","sourceRoot":"","sources":["../src/deepCyclicCopy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,oBAAY,qBAAqB,GAAG;IAClC,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAmBF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,CAAC,EACtC,KAAK,EAAE,CAAC,EACR,OAAO,GAAE,qBAAgE,EACzE,MAAM,GAAE,OAAO,CAAC,GAAG,EAAE,GAAG,CAAiB,GACxC,CAAC,CAUH"}
|
99
node_modules/jest-util/build/deepCyclicCopy.js
generated
vendored
99
node_modules/jest-util/build/deepCyclicCopy.js
generated
vendored
|
@ -1,99 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = deepCyclicCopy;
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
const EMPTY = new Set();
|
||||
|
||||
// Node 6 does not have gOPDs, so we define a simple polyfill for it.
|
||||
if (!Object.getOwnPropertyDescriptors) {
|
||||
// @ts-ignore: polyfill
|
||||
Object.getOwnPropertyDescriptors = obj => {
|
||||
const list = {};
|
||||
Object.getOwnPropertyNames(obj)
|
||||
.concat(Object.getOwnPropertySymbols(obj))
|
||||
.forEach(key => {
|
||||
// @ts-ignore: assignment with a Symbol is OK.
|
||||
list[key] = Object.getOwnPropertyDescriptor(obj, key);
|
||||
});
|
||||
return list;
|
||||
};
|
||||
}
|
||||
|
||||
function deepCyclicCopy(
|
||||
value,
|
||||
options = {
|
||||
blacklist: EMPTY,
|
||||
keepPrototype: false
|
||||
},
|
||||
cycles = new WeakMap()
|
||||
) {
|
||||
if (typeof value !== 'object' || value === null) {
|
||||
return value;
|
||||
} else if (cycles.has(value)) {
|
||||
return cycles.get(value);
|
||||
} else if (Array.isArray(value)) {
|
||||
return deepCyclicCopyArray(value, options, cycles);
|
||||
} else {
|
||||
return deepCyclicCopyObject(value, options, cycles);
|
||||
}
|
||||
}
|
||||
|
||||
function deepCyclicCopyObject(object, options, cycles) {
|
||||
const newObject = options.keepPrototype
|
||||
? Object.create(Object.getPrototypeOf(object))
|
||||
: {};
|
||||
const descriptors = Object.getOwnPropertyDescriptors(object);
|
||||
cycles.set(object, newObject);
|
||||
Object.keys(descriptors).forEach(key => {
|
||||
if (options.blacklist && options.blacklist.has(key)) {
|
||||
delete descriptors[key];
|
||||
return;
|
||||
}
|
||||
|
||||
const descriptor = descriptors[key];
|
||||
|
||||
if (typeof descriptor.value !== 'undefined') {
|
||||
descriptor.value = deepCyclicCopy(
|
||||
descriptor.value,
|
||||
{
|
||||
blacklist: EMPTY,
|
||||
keepPrototype: options.keepPrototype
|
||||
},
|
||||
cycles
|
||||
);
|
||||
}
|
||||
|
||||
descriptor.configurable = true;
|
||||
});
|
||||
return Object.defineProperties(newObject, descriptors);
|
||||
}
|
||||
|
||||
function deepCyclicCopyArray(array, options, cycles) {
|
||||
const newArray = options.keepPrototype
|
||||
? new (Object.getPrototypeOf(array)).constructor(array.length)
|
||||
: [];
|
||||
const length = array.length;
|
||||
cycles.set(array, newArray);
|
||||
|
||||
for (let i = 0; i < length; i++) {
|
||||
newArray[i] = deepCyclicCopy(
|
||||
array[i],
|
||||
{
|
||||
blacklist: EMPTY,
|
||||
keepPrototype: options.keepPrototype
|
||||
},
|
||||
cycles
|
||||
);
|
||||
}
|
||||
|
||||
return newArray;
|
||||
}
|
10
node_modules/jest-util/build/getFailedSnapshotTests.d.ts
generated
vendored
10
node_modules/jest-util/build/getFailedSnapshotTests.d.ts
generated
vendored
|
@ -1,10 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
import { AggregatedResult } from '@jest/test-result';
|
||||
declare function getFailedSnapshotTests(testResults: AggregatedResult): string[];
|
||||
export default getFailedSnapshotTests;
|
||||
//# sourceMappingURL=getFailedSnapshotTests.d.ts.map
|
1
node_modules/jest-util/build/getFailedSnapshotTests.d.ts.map
generated
vendored
1
node_modules/jest-util/build/getFailedSnapshotTests.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"getFailedSnapshotTests.d.ts","sourceRoot":"","sources":["../src/getFailedSnapshotTests.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAEnD,iBAAS,sBAAsB,CAAC,WAAW,EAAE,gBAAgB,YAa5D;AAED,eAAe,sBAAsB,CAAC"}
|
30
node_modules/jest-util/build/getFailedSnapshotTests.js
generated
vendored
30
node_modules/jest-util/build/getFailedSnapshotTests.js
generated
vendored
|
@ -1,30 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
function getFailedSnapshotTests(testResults) {
|
||||
const failedTestPaths = [];
|
||||
|
||||
if (testResults.numFailedTests === 0 || !testResults.testResults) {
|
||||
return failedTestPaths;
|
||||
}
|
||||
|
||||
testResults.testResults.forEach(testResult => {
|
||||
if (testResult.snapshot && testResult.snapshot.unmatched) {
|
||||
failedTestPaths.push(testResult.testFilePath);
|
||||
}
|
||||
});
|
||||
return failedTestPaths;
|
||||
}
|
||||
|
||||
var _default = getFailedSnapshotTests;
|
||||
exports.default = _default;
|
48
node_modules/jest-util/build/index.d.ts
generated
vendored
48
node_modules/jest-util/build/index.d.ts
generated
vendored
|
@ -1,48 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
/// <reference types="node" />
|
||||
import { JestFakeTimers as FakeTimers } from '@jest/fake-timers';
|
||||
import { BufferedConsole, CustomConsole, NullConsole } from '@jest/console';
|
||||
import { formatTestResults } from '@jest/test-result';
|
||||
import createDirectory from './createDirectory';
|
||||
import ErrorWithStack from './ErrorWithStack';
|
||||
import getFailedSnapshotTests from './getFailedSnapshotTests';
|
||||
import installCommonGlobals from './installCommonGlobals';
|
||||
import interopRequireDefault from './interopRequireDefault';
|
||||
import deepCyclicCopy from './deepCyclicCopy';
|
||||
import convertDescriptorToString from './convertDescriptorToString';
|
||||
import * as specialChars from './specialChars';
|
||||
import replacePathSepForGlob from './replacePathSepForGlob';
|
||||
import * as preRunMessage from './preRunMessage';
|
||||
import pluralize from './pluralize';
|
||||
declare const _default: {
|
||||
BufferedConsole: typeof BufferedConsole;
|
||||
Console: typeof CustomConsole;
|
||||
ErrorWithStack: typeof ErrorWithStack;
|
||||
FakeTimers: typeof FakeTimers;
|
||||
NullConsole: typeof NullConsole;
|
||||
clearLine: (stream: NodeJS.WritableStream) => void;
|
||||
convertDescriptorToString: typeof convertDescriptorToString;
|
||||
createDirectory: typeof createDirectory;
|
||||
deepCyclicCopy: typeof deepCyclicCopy;
|
||||
formatTestResults: typeof formatTestResults;
|
||||
getCallsite: (level: number, sourceMaps?: import("@jest/source-map").SourceMapRegistry | null | undefined) => import("callsites").CallSite;
|
||||
getConsoleOutput: (root: string, verbose: boolean, buffer: import("@jest/console/build/types").LogEntry[]) => string;
|
||||
getFailedSnapshotTests: typeof getFailedSnapshotTests;
|
||||
installCommonGlobals: typeof installCommonGlobals;
|
||||
interopRequireDefault: typeof interopRequireDefault;
|
||||
isInteractive: boolean;
|
||||
isPromise: (candidate: unknown) => candidate is Promise<unknown>;
|
||||
pluralize: typeof pluralize;
|
||||
preRunMessage: typeof preRunMessage;
|
||||
replacePathSepForGlob: typeof replacePathSepForGlob;
|
||||
setGlobal: (globalToMutate: NodeJS.Global | Window, key: string, value: unknown) => void;
|
||||
specialChars: typeof specialChars;
|
||||
testPathPatternToRegExp: (testPathPattern: string) => RegExp;
|
||||
};
|
||||
export = _default;
|
||||
//# sourceMappingURL=index.d.ts.map
|
1
node_modules/jest-util/build/index.d.ts.map
generated
vendored
1
node_modules/jest-util/build/index.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAGH,OAAO,EAAC,cAAc,IAAI,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EACL,eAAe,EACf,aAAa,EACb,WAAW,EAEZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAEpD,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAI5D,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,SAAS,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpC,kBAwBE"}
|
147
node_modules/jest-util/build/index.js
generated
vendored
147
node_modules/jest-util/build/index.js
generated
vendored
|
@ -1,147 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
function _fakeTimers() {
|
||||
const data = require('@jest/fake-timers');
|
||||
|
||||
_fakeTimers = function _fakeTimers() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _sourceMap() {
|
||||
const data = require('@jest/source-map');
|
||||
|
||||
_sourceMap = function _sourceMap() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _console() {
|
||||
const data = require('@jest/console');
|
||||
|
||||
_console = function _console() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _testResult() {
|
||||
const data = require('@jest/test-result');
|
||||
|
||||
_testResult = function _testResult() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
var _clearLine = _interopRequireDefault2(require('./clearLine'));
|
||||
|
||||
var _createDirectory = _interopRequireDefault2(require('./createDirectory'));
|
||||
|
||||
var _ErrorWithStack = _interopRequireDefault2(require('./ErrorWithStack'));
|
||||
|
||||
var _getFailedSnapshotTests = _interopRequireDefault2(
|
||||
require('./getFailedSnapshotTests')
|
||||
);
|
||||
|
||||
var _installCommonGlobals = _interopRequireDefault2(
|
||||
require('./installCommonGlobals')
|
||||
);
|
||||
|
||||
var _interopRequireDefault = _interopRequireDefault2(
|
||||
require('./interopRequireDefault')
|
||||
);
|
||||
|
||||
var _isInteractive = _interopRequireDefault2(require('./isInteractive'));
|
||||
|
||||
var _isPromise = _interopRequireDefault2(require('./isPromise'));
|
||||
|
||||
var _setGlobal = _interopRequireDefault2(require('./setGlobal'));
|
||||
|
||||
var _deepCyclicCopy = _interopRequireDefault2(require('./deepCyclicCopy'));
|
||||
|
||||
var _convertDescriptorToString = _interopRequireDefault2(
|
||||
require('./convertDescriptorToString')
|
||||
);
|
||||
|
||||
var specialChars = _interopRequireWildcard(require('./specialChars'));
|
||||
|
||||
var _replacePathSepForGlob = _interopRequireDefault2(
|
||||
require('./replacePathSepForGlob')
|
||||
);
|
||||
|
||||
var _testPathPatternToRegExp = _interopRequireDefault2(
|
||||
require('./testPathPatternToRegExp')
|
||||
);
|
||||
|
||||
var preRunMessage = _interopRequireWildcard(require('./preRunMessage'));
|
||||
|
||||
var _pluralize = _interopRequireDefault2(require('./pluralize'));
|
||||
|
||||
function _interopRequireWildcard(obj) {
|
||||
if (obj && obj.__esModule) {
|
||||
return obj;
|
||||
} else {
|
||||
var newObj = {};
|
||||
if (obj != null) {
|
||||
for (var key in obj) {
|
||||
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
||||
var desc =
|
||||
Object.defineProperty && Object.getOwnPropertyDescriptor
|
||||
? Object.getOwnPropertyDescriptor(obj, key)
|
||||
: {};
|
||||
if (desc.get || desc.set) {
|
||||
Object.defineProperty(newObj, key, desc);
|
||||
} else {
|
||||
newObj[key] = obj[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
newObj.default = obj;
|
||||
return newObj;
|
||||
}
|
||||
}
|
||||
|
||||
function _interopRequireDefault2(obj) {
|
||||
return obj && obj.__esModule ? obj : {default: obj};
|
||||
}
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
// TODO: Remove these exports in the next major
|
||||
module.exports = {
|
||||
BufferedConsole: _console().BufferedConsole,
|
||||
Console: _console().CustomConsole,
|
||||
ErrorWithStack: _ErrorWithStack.default,
|
||||
FakeTimers: _fakeTimers().JestFakeTimers,
|
||||
NullConsole: _console().NullConsole,
|
||||
clearLine: _clearLine.default,
|
||||
convertDescriptorToString: _convertDescriptorToString.default,
|
||||
createDirectory: _createDirectory.default,
|
||||
deepCyclicCopy: _deepCyclicCopy.default,
|
||||
formatTestResults: _testResult().formatTestResults,
|
||||
getCallsite: _sourceMap().getCallsite,
|
||||
getConsoleOutput: _console().getConsoleOutput,
|
||||
getFailedSnapshotTests: _getFailedSnapshotTests.default,
|
||||
installCommonGlobals: _installCommonGlobals.default,
|
||||
interopRequireDefault: _interopRequireDefault.default,
|
||||
isInteractive: _isInteractive.default,
|
||||
isPromise: _isPromise.default,
|
||||
pluralize: _pluralize.default,
|
||||
preRunMessage,
|
||||
replacePathSepForGlob: _replacePathSepForGlob.default,
|
||||
setGlobal: _setGlobal.default,
|
||||
specialChars,
|
||||
testPathPatternToRegExp: _testPathPatternToRegExp.default
|
||||
};
|
9
node_modules/jest-util/build/installCommonGlobals.d.ts
generated
vendored
9
node_modules/jest-util/build/installCommonGlobals.d.ts
generated
vendored
|
@ -1,9 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
import { Config } from '@jest/types';
|
||||
export default function (globalObject: NodeJS.Global, globals: Config.ConfigGlobals): NodeJS.Global & Config.ConfigGlobals;
|
||||
//# sourceMappingURL=installCommonGlobals.d.ts.map
|
1
node_modules/jest-util/build/installCommonGlobals.d.ts.map
generated
vendored
1
node_modules/jest-util/build/installCommonGlobals.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"installCommonGlobals.d.ts","sourceRoot":"","sources":["../src/installCommonGlobals.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AAMnC,MAAM,CAAC,OAAO,WACZ,YAAY,EAAE,MAAM,CAAC,MAAM,EAC3B,OAAO,EAAE,MAAM,CAAC,aAAa,GAC5B,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,aAAa,CAqDtC"}
|
85
node_modules/jest-util/build/installCommonGlobals.js
generated
vendored
85
node_modules/jest-util/build/installCommonGlobals.js
generated
vendored
|
@ -1,85 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = _default;
|
||||
|
||||
function _fs() {
|
||||
const data = _interopRequireDefault(require('fs'));
|
||||
|
||||
_fs = function _fs() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
var _createProcessObject = _interopRequireDefault(
|
||||
require('./createProcessObject')
|
||||
);
|
||||
|
||||
var _deepCyclicCopy = _interopRequireDefault(require('./deepCyclicCopy'));
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {default: obj};
|
||||
}
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
const DTRACE = Object.keys(global).filter(key => key.startsWith('DTRACE'));
|
||||
|
||||
function _default(globalObject, globals) {
|
||||
globalObject.process = (0, _createProcessObject.default)();
|
||||
const symbol = globalObject.Symbol; // Keep a reference to some globals that Jest needs
|
||||
|
||||
Object.defineProperties(globalObject, {
|
||||
[symbol.for('jest-native-promise')]: {
|
||||
enumerable: false,
|
||||
value: Promise,
|
||||
writable: false
|
||||
},
|
||||
[symbol.for('jest-native-now')]: {
|
||||
enumerable: false,
|
||||
value: globalObject.Date.now.bind(globalObject.Date),
|
||||
writable: false
|
||||
},
|
||||
[symbol.for('jest-native-read-file')]: {
|
||||
enumerable: false,
|
||||
value: _fs().default.readFileSync.bind(_fs().default),
|
||||
writable: false
|
||||
},
|
||||
[symbol.for('jest-native-write-file')]: {
|
||||
enumerable: false,
|
||||
value: _fs().default.writeFileSync.bind(_fs().default),
|
||||
writable: false
|
||||
},
|
||||
[symbol.for('jest-native-exists-file')]: {
|
||||
enumerable: false,
|
||||
value: _fs().default.existsSync.bind(_fs().default),
|
||||
writable: false
|
||||
},
|
||||
'jest-symbol-do-not-touch': {
|
||||
enumerable: false,
|
||||
value: symbol,
|
||||
writable: false
|
||||
}
|
||||
}); // Forward some APIs.
|
||||
|
||||
DTRACE.forEach(dtrace => {
|
||||
// @ts-ignore: no index
|
||||
globalObject[dtrace] = function(...args) {
|
||||
// @ts-ignore: no index
|
||||
return global[dtrace].apply(this, args);
|
||||
};
|
||||
}); // Forward some others (this breaks the sandbox but for now it's OK).
|
||||
|
||||
globalObject.Buffer = global.Buffer;
|
||||
globalObject.setImmediate = global.setImmediate;
|
||||
globalObject.clearImmediate = global.clearImmediate;
|
||||
return Object.assign(globalObject, (0, _deepCyclicCopy.default)(globals));
|
||||
}
|
8
node_modules/jest-util/build/interopRequireDefault.d.ts
generated
vendored
8
node_modules/jest-util/build/interopRequireDefault.d.ts
generated
vendored
|
@ -1,8 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
export default function interopRequireDefault(obj: any): any;
|
||||
//# sourceMappingURL=interopRequireDefault.d.ts.map
|
1
node_modules/jest-util/build/interopRequireDefault.d.ts.map
generated
vendored
1
node_modules/jest-util/build/interopRequireDefault.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"interopRequireDefault.d.ts","sourceRoot":"","sources":["../src/interopRequireDefault.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,GAAG,EAAE,GAAG,OAErD"}
|
21
node_modules/jest-util/build/interopRequireDefault.js
generated
vendored
21
node_modules/jest-util/build/interopRequireDefault.js
generated
vendored
|
@ -1,21 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = interopRequireDefault;
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
// copied from https://github.com/babel/babel/blob/56044c7851d583d498f919e9546caddf8f80a72f/packages/babel-helpers/src/helpers.js#L558-L562
|
||||
function interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule
|
||||
? obj
|
||||
: {
|
||||
default: obj
|
||||
};
|
||||
}
|
3
node_modules/jest-util/build/isInteractive.d.ts
generated
vendored
3
node_modules/jest-util/build/isInteractive.d.ts
generated
vendored
|
@ -1,3 +0,0 @@
|
|||
declare const _default: boolean;
|
||||
export default _default;
|
||||
//# sourceMappingURL=isInteractive.d.ts.map
|
1
node_modules/jest-util/build/isInteractive.d.ts.map
generated
vendored
1
node_modules/jest-util/build/isInteractive.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"isInteractive.d.ts","sourceRoot":"","sources":["../src/isInteractive.ts"],"names":[],"mappings":";AAIA,wBAA8E"}
|
26
node_modules/jest-util/build/isInteractive.js
generated
vendored
26
node_modules/jest-util/build/isInteractive.js
generated
vendored
|
@ -1,26 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
function _isCi() {
|
||||
const data = _interopRequireDefault(require('is-ci'));
|
||||
|
||||
_isCi = function _isCi() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {default: obj};
|
||||
}
|
||||
|
||||
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
var _default =
|
||||
!!process.stdout.isTTY && process.env.TERM !== 'dumb' && !_isCi().default;
|
||||
|
||||
exports.default = _default;
|
9
node_modules/jest-util/build/isPromise.d.ts
generated
vendored
9
node_modules/jest-util/build/isPromise.d.ts
generated
vendored
|
@ -1,9 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
declare const isPromise: (candidate: unknown) => candidate is Promise<unknown>;
|
||||
export default isPromise;
|
||||
//# sourceMappingURL=isPromise.d.ts.map
|
1
node_modules/jest-util/build/isPromise.d.ts.map
generated
vendored
1
node_modules/jest-util/build/isPromise.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"isPromise.d.ts","sourceRoot":"","sources":["../src/isPromise.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,QAAA,MAAM,SAAS,uDAC2B,CAAC;AAC3C,eAAe,SAAS,CAAC"}
|
19
node_modules/jest-util/build/isPromise.js
generated
vendored
19
node_modules/jest-util/build/isPromise.js
generated
vendored
|
@ -1,19 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
const Promise = global.Promise; // see ES2015 spec 25.4.4.5, https://stackoverflow.com/a/38339199
|
||||
|
||||
const isPromise = candidate => Promise.resolve(candidate) === candidate;
|
||||
|
||||
var _default = isPromise;
|
||||
exports.default = _default;
|
8
node_modules/jest-util/build/pluralize.d.ts
generated
vendored
8
node_modules/jest-util/build/pluralize.d.ts
generated
vendored
|
@ -1,8 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
export default function pluralize(word: string, count: number): string;
|
||||
//# sourceMappingURL=pluralize.d.ts.map
|
1
node_modules/jest-util/build/pluralize.d.ts.map
generated
vendored
1
node_modules/jest-util/build/pluralize.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"pluralize.d.ts","sourceRoot":"","sources":["../src/pluralize.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAE5D"}
|
16
node_modules/jest-util/build/pluralize.js
generated
vendored
16
node_modules/jest-util/build/pluralize.js
generated
vendored
|
@ -1,16 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = pluralize;
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
function pluralize(word, count) {
|
||||
return `${count} ${word}${count === 1 ? '' : 's'}`;
|
||||
}
|
10
node_modules/jest-util/build/preRunMessage.d.ts
generated
vendored
10
node_modules/jest-util/build/preRunMessage.d.ts
generated
vendored
|
@ -1,10 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
/// <reference types="node" />
|
||||
export declare const print: (stream: NodeJS.WritableStream) => void;
|
||||
export declare const remove: (stream: NodeJS.WritableStream) => void;
|
||||
//# sourceMappingURL=preRunMessage.d.ts.map
|
1
node_modules/jest-util/build/preRunMessage.d.ts.map
generated
vendored
1
node_modules/jest-util/build/preRunMessage.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"preRunMessage.d.ts","sourceRoot":"","sources":["../src/preRunMessage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAMH,eAAO,MAAM,KAAK,yCAIjB,CAAC;AAEF,eAAO,MAAM,MAAM,yCAIlB,CAAC"}
|
48
node_modules/jest-util/build/preRunMessage.js
generated
vendored
48
node_modules/jest-util/build/preRunMessage.js
generated
vendored
|
@ -1,48 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.remove = exports.print = void 0;
|
||||
|
||||
function _chalk() {
|
||||
const data = _interopRequireDefault(require('chalk'));
|
||||
|
||||
_chalk = function _chalk() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
var _clearLine = _interopRequireDefault(require('./clearLine'));
|
||||
|
||||
var _isInteractive = _interopRequireDefault(require('./isInteractive'));
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {default: obj};
|
||||
}
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
const print = stream => {
|
||||
if (_isInteractive.default) {
|
||||
stream.write(
|
||||
_chalk().default.bold.dim('Determining test suites to run...')
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
exports.print = print;
|
||||
|
||||
const remove = stream => {
|
||||
if (_isInteractive.default) {
|
||||
(0, _clearLine.default)(stream);
|
||||
}
|
||||
};
|
||||
|
||||
exports.remove = remove;
|
9
node_modules/jest-util/build/replacePathSepForGlob.d.ts
generated
vendored
9
node_modules/jest-util/build/replacePathSepForGlob.d.ts
generated
vendored
|
@ -1,9 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
import { Config } from '@jest/types';
|
||||
export default function replacePathSepForGlob(path: Config.Path): Config.Glob;
|
||||
//# sourceMappingURL=replacePathSepForGlob.d.ts.map
|
1
node_modules/jest-util/build/replacePathSepForGlob.d.ts.map
generated
vendored
1
node_modules/jest-util/build/replacePathSepForGlob.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"replacePathSepForGlob.d.ts","sourceRoot":"","sources":["../src/replacePathSepForGlob.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AAEnC,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAE5E"}
|
16
node_modules/jest-util/build/replacePathSepForGlob.js
generated
vendored
16
node_modules/jest-util/build/replacePathSepForGlob.js
generated
vendored
|
@ -1,16 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = replacePathSepForGlob;
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
function replacePathSepForGlob(path) {
|
||||
return path.replace(/\\(?![{}()+?.^$])/g, '/');
|
||||
}
|
9
node_modules/jest-util/build/setGlobal.d.ts
generated
vendored
9
node_modules/jest-util/build/setGlobal.d.ts
generated
vendored
|
@ -1,9 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
declare const _default: (globalToMutate: NodeJS.Global | Window, key: string, value: unknown) => void;
|
||||
export default _default;
|
||||
//# sourceMappingURL=setGlobal.d.ts.map
|
1
node_modules/jest-util/build/setGlobal.d.ts.map
generated
vendored
1
node_modules/jest-util/build/setGlobal.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"setGlobal.d.ts","sourceRoot":"","sources":["../src/setGlobal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,wBAOE"}
|
19
node_modules/jest-util/build/setGlobal.js
generated
vendored
19
node_modules/jest-util/build/setGlobal.js
generated
vendored
|
@ -1,19 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
var _default = (globalToMutate, key, value) => {
|
||||
// @ts-ignore: no index
|
||||
globalToMutate[key] = value;
|
||||
};
|
||||
|
||||
exports.default = _default;
|
15
node_modules/jest-util/build/specialChars.d.ts
generated
vendored
15
node_modules/jest-util/build/specialChars.d.ts
generated
vendored
|
@ -1,15 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
export declare const ARROW = " \u203A ";
|
||||
export declare const ICONS: {
|
||||
failed: string;
|
||||
pending: string;
|
||||
success: string;
|
||||
todo: string;
|
||||
};
|
||||
export declare const CLEAR: string;
|
||||
//# sourceMappingURL=specialChars.d.ts.map
|
1
node_modules/jest-util/build/specialChars.d.ts.map
generated
vendored
1
node_modules/jest-util/build/specialChars.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"specialChars.d.ts","sourceRoot":"","sources":["../src/specialChars.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,KAAK,aAAa,CAAC;AAChC,eAAO,MAAM,KAAK;;;;;CAKjB,CAAC;AAEF,eAAO,MAAM,KAAK,QAAwD,CAAC"}
|
25
node_modules/jest-util/build/specialChars.js
generated
vendored
25
node_modules/jest-util/build/specialChars.js
generated
vendored
|
@ -1,25 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.CLEAR = exports.ICONS = exports.ARROW = void 0;
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
const isWindows = process.platform === 'win32';
|
||||
const ARROW = ' \u203A ';
|
||||
exports.ARROW = ARROW;
|
||||
const ICONS = {
|
||||
failed: isWindows ? '\u00D7' : '\u2715',
|
||||
pending: '\u25CB',
|
||||
success: isWindows ? '\u221A' : '\u2713',
|
||||
todo: '\u270E'
|
||||
};
|
||||
exports.ICONS = ICONS;
|
||||
const CLEAR = isWindows ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H';
|
||||
exports.CLEAR = CLEAR;
|
9
node_modules/jest-util/build/testPathPatternToRegExp.d.ts
generated
vendored
9
node_modules/jest-util/build/testPathPatternToRegExp.d.ts
generated
vendored
|
@ -1,9 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
declare const _default: (testPathPattern: string) => RegExp;
|
||||
export default _default;
|
||||
//# sourceMappingURL=testPathPatternToRegExp.d.ts.map
|
1
node_modules/jest-util/build/testPathPatternToRegExp.d.ts.map
generated
vendored
1
node_modules/jest-util/build/testPathPatternToRegExp.d.ts.map
generated
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"testPathPatternToRegExp.d.ts","sourceRoot":"","sources":["../src/testPathPatternToRegExp.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAOH,wBACmC"}
|
19
node_modules/jest-util/build/testPathPatternToRegExp.js
generated
vendored
19
node_modules/jest-util/build/testPathPatternToRegExp.js
generated
vendored
|
@ -1,19 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
// Because we serialize/deserialize globalConfig when we spawn workers,
|
||||
// we can't pass regular expression. Using this shared function on both sides
|
||||
// will ensure that we produce consistent regexp for testPathPattern.
|
||||
var _default = testPathPattern => new RegExp(testPathPattern, 'i');
|
||||
|
||||
exports.default = _default;
|
Loading…
Add table
Add a link
Reference in a new issue