initial commit taken from gitlab.lrz.de

This commit is contained in:
privatereese
2018-08-24 18:09:42 +02:00
parent ae54ed4c48
commit fc05486403
28494 changed files with 2159823 additions and 0 deletions

118
node_modules/jest-environment-jsdom/build/index.js generated vendored Normal file
View File

@@ -0,0 +1,118 @@
'use strict';
var _jestUtil;
function _load_jestUtil() {
return _jestUtil = require('jest-util');
}
var _jestMock;
function _load_jestMock() {
return _jestMock = _interopRequireDefault(require('jest-mock'));
}
var _jsdom;
function _load_jsdom() {
return _jsdom = require('jsdom');
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Copyright (c) 2014-present, Facebook, Inc. 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 JSDOMEnvironment {
constructor(config) {
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
this.dom = new (_jsdom || _load_jsdom()).JSDOM('<!DOCTYPE html>', Object.assign({
pretendToBeVisual: true,
runScripts: 'dangerously',
url: config.testURL,
virtualConsole: new (_jsdom || _load_jsdom()).VirtualConsole().sendTo(options.console || console)
}, config.testEnvironmentOptions));
const global = this.global = this.dom.window.document.defaultView;
// Node's error-message stack size is limited at 10, but it's pretty useful
// to see more than that when a test fails.
this.global.Error.stackTraceLimit = 100;
(0, (_jestUtil || _load_jestUtil()).installCommonGlobals)(global, config.globals);
// Report uncaught errors.
this.errorEventListener = event => {
if (userErrorListenerCount === 0 && event.error) {
process.emit('uncaughtException', event.error);
}
};
global.addEventListener('error', this.errorEventListener);
// However, don't report them as uncaught if the user listens to 'error' event.
// In that case, we assume the might have custom error handling logic.
const originalAddListener = global.addEventListener;
const originalRemoveListener = global.removeEventListener;
let userErrorListenerCount = 0;
global.addEventListener = function (name) {
if (name === 'error') {
userErrorListenerCount++;
}
return originalAddListener.apply(this, arguments);
};
global.removeEventListener = function (name) {
if (name === 'error') {
userErrorListenerCount--;
}
return originalRemoveListener.apply(this, arguments);
};
this.moduleMocker = new (_jestMock || _load_jestMock()).default.ModuleMocker(global);
const timerConfig = {
idToRef: id => id,
refToId: ref => ref
};
this.fakeTimers = new (_jestUtil || _load_jestUtil()).FakeTimers({
config,
global,
moduleMocker: this.moduleMocker,
timerConfig
});
}
setup() {
return Promise.resolve();
}
teardown() {
if (this.fakeTimers) {
this.fakeTimers.dispose();
}
if (this.global) {
if (this.errorEventListener) {
this.global.removeEventListener('error', this.errorEventListener);
}
this.global.close();
}
this.errorEventListener = null;
this.global = null;
this.dom = null;
this.fakeTimers = null;
return Promise.resolve();
}
runScript(script) {
if (this.dom) {
return this.dom.runVMScript(script);
}
return null;
}
}
module.exports = JSDOMEnvironment;

91
node_modules/jest-environment-jsdom/package.json generated vendored Normal file
View File

@@ -0,0 +1,91 @@
{
"_args": [
[
"jest-environment-jsdom@^22.4.1",
"/home/bernhard/freifunk-app/node_modules/jest/node_modules/jest-cli"
]
],
"_from": "jest-environment-jsdom@>=22.4.1 <23.0.0",
"_id": "jest-environment-jsdom@22.4.3",
"_inCache": true,
"_installable": true,
"_location": "/jest-environment-jsdom",
"_nodeVersion": "8.9.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/jest-environment-jsdom_22.4.3_1521648552868_0.11550004405906567"
},
"_npmUser": {
"email": "mjesun@hotmail.com",
"name": "mjesun"
},
"_npmVersion": "5.5.1",
"_phantomChildren": {},
"_requested": {
"name": "jest-environment-jsdom",
"raw": "jest-environment-jsdom@^22.4.1",
"rawSpec": "^22.4.1",
"scope": null,
"spec": ">=22.4.1 <23.0.0",
"type": "range"
},
"_requiredBy": [
"/jest-config",
"/jest/jest-cli"
],
"_resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-22.4.3.tgz",
"_shasum": "d67daa4155e33516aecdd35afd82d4abf0fa8a1e",
"_shrinkwrap": null,
"_spec": "jest-environment-jsdom@^22.4.1",
"_where": "/home/bernhard/freifunk-app/node_modules/jest/node_modules/jest-cli",
"bugs": {
"url": "https://github.com/facebook/jest/issues"
},
"dependencies": {
"jest-mock": "^22.4.3",
"jest-util": "^22.4.3",
"jsdom": "^11.5.1"
},
"devDependencies": {},
"directories": {},
"dist": {
"fileCount": 2,
"integrity": "sha512-FviwfR+VyT3Datf13+ULjIMO5CSeajlayhhYQwpzgunswoaLIPutdbrnfUHEMyJCwvqQFaVtTmn9+Y8WCt6n1w==",
"shasum": "d67daa4155e33516aecdd35afd82d4abf0fa8a1e",
"tarball": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-22.4.3.tgz",
"unpackedSize": 3598
},
"homepage": "https://github.com/facebook/jest#readme",
"license": "MIT",
"main": "build/index.js",
"maintainers": [
{
"name": "aaronabramov",
"email": "aaron@abramov.io"
},
{
"name": "cpojer",
"email": "christoph.pojer@gmail.com"
},
{
"name": "fb",
"email": "opensource+npm@fb.com"
},
{
"name": "jeanlauliac",
"email": "jean@lauliac.com"
},
{
"name": "mjesun",
"email": "mjesun@hotmail.com"
}
],
"name": "jest-environment-jsdom",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/jest.git"
},
"version": "22.4.3"
}