Innovenergy_trunk/frontend/node_modules/testcafe/lib/configuration/default-values.js

57 lines
7.0 KiB
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDefaultCompilerOptions = exports.TYPESCRIPT_BLACKLISTED_OPTIONS = exports.TYPESCRIPT_COMPILER_NON_OVERRIDABLE_OPTIONS = exports.DEFAULT_TYPESCRIPT_COMPILER_OPTIONS = exports.DEFAULT_DISABLE_CROSS_DOMAIN = exports.DEFAULT_FILTER_FN = exports.DEFAULT_SCREENSHOT_THUMBNAILS = exports.DEFAULT_PROXYLESS = exports.DEFAULT_DISABLE_HTTP2 = exports.DEFAULT_RETRY_TEST_PAGES = exports.DEFAULT_DEVELOPMENT_MODE = exports.DEFAULT_SOURCE_DIRECTORIES = exports.DEFAULT_CONCURRENCY_VALUE = exports.DEFAULT_APP_INIT_DELAY = exports.DEFAULT_SPEED_VALUE = exports.DEFAULT_TIMEOUT = void 0;
const customizable_compilers_1 = __importDefault(require("./customizable-compilers"));
exports.DEFAULT_TIMEOUT = {
selector: 10000,
assertion: 3000,
pageLoad: 3000,
};
exports.DEFAULT_SPEED_VALUE = 1;
exports.DEFAULT_APP_INIT_DELAY = 1000;
exports.DEFAULT_CONCURRENCY_VALUE = 1;
exports.DEFAULT_SOURCE_DIRECTORIES = ['tests', 'test'];
exports.DEFAULT_DEVELOPMENT_MODE = false;
exports.DEFAULT_RETRY_TEST_PAGES = false;
exports.DEFAULT_DISABLE_HTTP2 = false;
exports.DEFAULT_PROXYLESS = false;
exports.DEFAULT_SCREENSHOT_THUMBNAILS = true;
exports.DEFAULT_FILTER_FN = null;
exports.DEFAULT_DISABLE_CROSS_DOMAIN = false;
exports.DEFAULT_TYPESCRIPT_COMPILER_OPTIONS = {
experimentalDecorators: true,
emitDecoratorMetadata: true,
allowJs: true,
pretty: true,
inlineSourceMap: true,
noImplicitAny: false,
module: 1 /* ts.ModuleKind.CommonJS */,
moduleResolution: 2 /* ts.ModuleResolutionKind.Node */,
target: 3 /* ts.ScriptTarget.ES2016 */,
jsx: 2 /* ts.JsxEmit.React */,
suppressOutputPathCheck: true,
skipLibCheck: true,
};
exports.TYPESCRIPT_COMPILER_NON_OVERRIDABLE_OPTIONS = ['module', 'moduleResolution', 'target'];
exports.TYPESCRIPT_BLACKLISTED_OPTIONS = [
'incremental',
'tsBuildInfoFile',
'emitDeclarationOnly',
'declarationMap',
'declarationDir',
'composite',
'outFile',
'out',
];
const DEFAULT_COMPILER_OPTIONS = {
[customizable_compilers_1.default.typescript]: {},
};
function getDefaultCompilerOptions() {
// NOTE: Return the copy of the constant to prevent the modification of object properties
return Object.assign({}, DEFAULT_COMPILER_OPTIONS);
}
exports.getDefaultCompilerOptions = getDefaultCompilerOptions;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC12YWx1ZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uZmlndXJhdGlvbi9kZWZhdWx0LXZhbHVlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFDQSxzRkFBNkQ7QUFFaEQsUUFBQSxlQUFlLEdBQUc7SUFDM0IsUUFBUSxFQUFHLEtBQUs7SUFDaEIsU0FBUyxFQUFFLElBQUk7SUFDZixRQUFRLEVBQUcsSUFBSTtDQUNsQixDQUFDO0FBRVcsUUFBQSxtQkFBbUIsR0FBRyxDQUFDLENBQUM7QUFFeEIsUUFBQSxzQkFBc0IsR0FBRyxJQUFJLENBQUM7QUFFOUIsUUFBQSx5QkFBeUIsR0FBRyxDQUFDLENBQUM7QUFFOUIsUUFBQSwwQkFBMEIsR0FBRyxDQUFDLE9BQU8sRUFBRSxNQUFNLENBQUMsQ0FBQztBQUUvQyxRQUFBLHdCQUF3QixHQUFRLEtBQUssQ0FBQztBQUN0QyxRQUFBLHd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