25 lines
3.3 KiB
JavaScript
25 lines
3.3 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.getDeprecationMessage = exports.DEPRECATED = void 0;
|
|
const render_template_1 = __importDefault(require("../utils/render-template"));
|
|
const warning_message_1 = __importDefault(require("./warning-message"));
|
|
const option_names_1 = __importDefault(require("../configuration/option-names"));
|
|
const customizable_compilers_1 = __importDefault(require("../configuration/customizable-compilers"));
|
|
exports.DEPRECATED = {
|
|
'setPageLoadTimeout': {
|
|
what: "The 't.setPageLoadTimeout' method",
|
|
useInstead: "the 'test.timeouts' method to set the 'pageLoadTimeout'",
|
|
},
|
|
'tsConfigPath': {
|
|
what: `The '${option_names_1.default.tsConfigPath}' option`,
|
|
useInstead: `the '${option_names_1.default.compilerOptions}.${customizable_compilers_1.default.typescript}.configPath' option`,
|
|
},
|
|
};
|
|
function getDeprecationMessage(deprecated) {
|
|
return (0, render_template_1.default)(warning_message_1.default.deprecatedAPI, deprecated.what, deprecated.useInstead);
|
|
}
|
|
exports.getDeprecationMessage = getDeprecationMessage;
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwcmVjYXRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ub3RpZmljYXRpb25zL2RlcHJlY2F0ZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsK0VBQXNEO0FBQ3RELHdFQUFpRDtBQUNqRCxpRkFBeUQ7QUFDekQscUdBQTRFO0FBTy9ELFFBQUEsVUFBVSxHQUErQztJQUNsRSxvQkFBb0IsRUFBRTtRQUNsQixJQUFJLEVBQVEsbUNBQW1DO1FBQy9DLFVBQVUsRUFBRSx5REFBeUQ7S0FDeEU7SUFDRCxjQUFj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