@cucumber/cucumber
Advanced tools
Comparing version 10.3.0 to 10.3.1
@@ -32,7 +32,9 @@ /// <reference types="node" /> | ||
* \} | ||
* @example ["--fail-fast", "--parallel", "2"] | ||
* @example "--fail-fast --parallel 2" | ||
* @remarks | ||
* This can also be provided as a string of argv-style arguments. | ||
* This can also be provided as an array or single string of argv-style | ||
* arguments. | ||
*/ | ||
provided?: Partial<IConfiguration> | string; | ||
provided?: Partial<IConfiguration> | string[] | string; | ||
} | ||
@@ -39,0 +41,0 @@ /** |
import { ILogger } from '../logger'; | ||
import { IConfiguration } from './types'; | ||
export declare function parseConfiguration(logger: ILogger, source: string, definition: Partial<IConfiguration> | string | undefined): Partial<IConfiguration>; | ||
export declare function parseConfiguration(logger: ILogger, source: string, definition: Partial<IConfiguration> | string[] | string | undefined): Partial<IConfiguration>; |
@@ -14,2 +14,11 @@ "use strict"; | ||
} | ||
if (Array.isArray(definition)) { | ||
logger.debug(`${source} configuration value is an array; parsing as argv`); | ||
const { configuration } = argv_parser_1.default.parse([ | ||
'node', | ||
'cucumber-js', | ||
...definition, | ||
]); | ||
return configuration; | ||
} | ||
if (typeof definition === 'string') { | ||
@@ -16,0 +25,0 @@ logger.debug(`${source} configuration value is a string; parsing as argv`); |
@@ -1,1 +0,1 @@ | ||
export declare const version = "10.3.0"; | ||
export declare const version = "10.3.1"; |
@@ -5,3 +5,3 @@ "use strict"; | ||
// Generated by genversion. | ||
exports.version = '10.3.0'; | ||
exports.version = '10.3.1'; | ||
//# sourceMappingURL=version.js.map |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "10.3.0", | ||
"version": "10.3.1", | ||
"homepage": "https://github.com/cucumber/cucumber-js", | ||
@@ -14,0 +14,0 @@ "author": "Julien Biezemans <jb@jbpros.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
857651
8739