UNPKG

cypress-maildev

Version:

An easy-to-use cypress bunch of commands to use Maildev API for tests messages reception !

15 lines (14 loc) 591 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.register = void 0; var maildevCommands_1 = require("./maildevCommands"); var register = function (cypress) { var maildevCommands = new maildevCommands_1.MaildevCommands(); maildevCommands_1.MaildevCommands.cypressCommands.forEach(function (commandName) { cypress.Commands.add(commandName, // TS is not able to handle this trick, because it's a dirty trick ! // @ts-ignore maildevCommands[commandName].bind(maildevCommands)); }); }; exports.register = register;