UNPKG

@badeball/cypress-cucumber-preprocessor

Version:

[![Build status](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml/badge.svg)](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml) [![Npm package weekly downloads](https://badgen.net/n

129 lines (128 loc) 5.26 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataTable = exports.afterScreenshotHandler = exports.afterSpecHandler = exports.beforeSpecHandler = exports.afterRunHandler = exports.beforeRunHandler = exports.addCucumberPreprocessorPlugin = exports.resolvePreprocessorConfiguration = void 0; exports.isFeature = isFeature; exports.doesFeatureMatch = doesFeatureMatch; exports.defineStep = defineStep; exports.Given = defineStep; exports.When = defineStep; exports.Then = defineStep; exports.Step = Step; exports.defineParameterType = defineParameterType; exports.attach = attach; exports.log = log; exports.link = link; exports.Before = Before; exports.After = After; exports.BeforeStep = BeforeStep; exports.AfterStep = AfterStep; exports.BeforeAll = BeforeAll; exports.AfterAll = AfterAll; var preprocessor_configuration_1 = require("./preprocessor-configuration"); Object.defineProperty(exports, "resolvePreprocessorConfiguration", { enumerable: true, get: function () { return preprocessor_configuration_1.resolve; } }); var add_cucumber_preprocessor_plugin_1 = require("./add-cucumber-preprocessor-plugin"); Object.defineProperty(exports, "addCucumberPreprocessorPlugin", { enumerable: true, get: function () { return add_cucumber_preprocessor_plugin_1.addCucumberPreprocessorPlugin; } }); var plugin_event_handlers_1 = require("./plugin-event-handlers"); Object.defineProperty(exports, "beforeRunHandler", { enumerable: true, get: function () { return plugin_event_handlers_1.beforeRunHandler; } }); Object.defineProperty(exports, "afterRunHandler", { enumerable: true, get: function () { return plugin_event_handlers_1.afterRunHandler; } }); Object.defineProperty(exports, "beforeSpecHandler", { enumerable: true, get: function () { return plugin_event_handlers_1.beforeSpecHandler; } }); Object.defineProperty(exports, "afterSpecHandler", { enumerable: true, get: function () { return plugin_event_handlers_1.afterSpecHandler; } }); Object.defineProperty(exports, "afterScreenshotHandler", { enumerable: true, get: function () { return plugin_event_handlers_1.afterScreenshotHandler; } }); /** * Everything below exist merely for the purpose of being nice with TypeScript. All of these methods * are exclusively used in the browser and the browser field in package.json points to * ./lib/entrypoint-browser.ts. */ function createUnimplemented() { return new Error("Cucumber methods aren't available in a node environment"); } function isFeature() { throw createUnimplemented(); } // eslint-disable-next-line @typescript-eslint/no-unused-vars function doesFeatureMatch(expression) { throw createUnimplemented(); } function defineStep( // eslint-disable-next-line @typescript-eslint/no-unused-vars description, // eslint-disable-next-line @typescript-eslint/no-unused-vars implementation) { throw createUnimplemented(); } function Step( // eslint-disable-next-line @typescript-eslint/no-unused-vars world, // eslint-disable-next-line @typescript-eslint/no-unused-vars text, // eslint-disable-next-line @typescript-eslint/no-unused-vars argument) { throw createUnimplemented(); } function defineParameterType( // eslint-disable-next-line @typescript-eslint/no-unused-vars options) { throw createUnimplemented(); } function attach( // eslint-disable-next-line @typescript-eslint/no-unused-vars data, // eslint-disable-next-line @typescript-eslint/no-unused-vars mediaTypeOrOptions) { throw createUnimplemented(); } // eslint-disable-next-line @typescript-eslint/no-unused-vars function log(text) { throw createUnimplemented(); } // eslint-disable-next-line @typescript-eslint/no-unused-vars function link(text) { throw createUnimplemented(); } function Before( // eslint-disable-next-line @typescript-eslint/no-unused-vars optionsOrFn, // eslint-disable-next-line @typescript-eslint/no-unused-vars maybeFn) { throw createUnimplemented(); } function After( // eslint-disable-next-line @typescript-eslint/no-unused-vars optionsOrFn, // eslint-disable-next-line @typescript-eslint/no-unused-vars maybeFn) { throw createUnimplemented(); } function BeforeStep( // eslint-disable-next-line @typescript-eslint/no-unused-vars optionsOrFn, // eslint-disable-next-line @typescript-eslint/no-unused-vars maybeFn) { throw createUnimplemented(); } function AfterStep( // eslint-disable-next-line @typescript-eslint/no-unused-vars optionsOrFn, // eslint-disable-next-line @typescript-eslint/no-unused-vars maybeFn) { throw createUnimplemented(); } function BeforeAll( // eslint-disable-next-line @typescript-eslint/no-unused-vars optionsOrFn, // eslint-disable-next-line @typescript-eslint/no-unused-vars maybeFn) { throw createUnimplemented(); } function AfterAll( // eslint-disable-next-line @typescript-eslint/no-unused-vars optionsOrFn, // eslint-disable-next-line @typescript-eslint/no-unused-vars maybeFn) { throw createUnimplemented(); } var data_table_1 = require("./data_table"); Object.defineProperty(exports, "DataTable", { enumerable: true, get: function () { return __importDefault(data_table_1).default; } });