UNPKG

@cucumber/cucumber

Version:

The official JavaScript implementation of Cucumber.

15 lines 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateConfiguration = validateConfiguration; function validateConfiguration(configuration, logger) { if (configuration.requireModule.length && !configuration.require.length) { logger.warn('Use of `require-module` option normally means you should specify your support code paths with `require`; see https://github.com/cucumber/cucumber-js/blob/main/docs/configuration.md#finding-your-code'); } if (configuration.loader.length && !configuration.import.length) { logger.warn('Use of `loader` option normally means you should specify your support code paths with `import`; see https://github.com/cucumber/cucumber-js/blob/main/docs/configuration.md#finding-your-code'); } if (configuration.retryTagFilter && !configuration.retry) { throw new Error('a positive `retry` count must be specified when setting `retryTagFilter`'); } } //# sourceMappingURL=validate_configuration.js.map