jest-preset-angular
Version:
Jest preset configuration for Angular projects
16 lines (15 loc) • 563 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCreateStringLiteral = void 0;
function getCreateStringLiteral(ts) {
if (ts.createStringLiteral && typeof ts.createStringLiteral === 'function') {
return ts.createStringLiteral;
}
return function createStringLiteral(text) {
var node = ts.createNode(ts.SyntaxKind.StringLiteral, -1, -1);
node.text = text;
node.flags |= ts.NodeFlags.Synthesized;
return node;
};
}
exports.getCreateStringLiteral = getCreateStringLiteral;