Skip to content
Permalink
Browse files
fix(cucumber): Compatibility with Cucumber.js 5.1
  • Loading branch information
jan-molak committed Jan 31, 2019
1 parent cf2cb26 commit 7cb7a9f85c082ceedf053e7ad3d4eca9957c86d4
Showing 4 changed files with 5 additions and 5 deletions.
@@ -44,7 +44,7 @@
"@serenity-js/rest": "2.0.1-alpha.1",
"@types/cucumber": "4.0.4",
"@types/express": "4.16.0",
"cucumber": "5.0.1",
"cucumber": "5.1.0",
"express": "4.16.4",
"npm-failsafe": "0.4.1",
"serenity-cli": "0.11.0",
@@ -36,7 +36,7 @@
"@integration/testing-tools": "2.0.1-alpha.1",
"@serenity-js/core": "2.0.1-alpha.1",
"@serenity-js/cucumber": "2.0.1-alpha.1",
"cucumber": "5.0.1"
"cucumber": "5.1.0"
},
"devDependencies": {
"@types/cucumber": "4.0.4"
@@ -44,7 +44,7 @@
"gherkin": "5.1.0"
},
"peerDependencies": {
"@serenity-js/core": "^1.6.0",
"@serenity-js/core": "2.0.1-alpha.1",
"cucumber": "^1.3.3 || ^2.3.1 || ^3.2.2 || ^4.2.1 || ^5.0.0",
"tiny-types": "^1.11.2"
},
@@ -1,4 +1,4 @@
import { serenity } from '@serenity-js/core';
import { ConfigurationError, serenity } from '@serenity-js/core';
import { Path } from '@serenity-js/core/lib/io';

import Gherkin = require('gherkin');
@@ -30,7 +30,7 @@ export function adapterForCucumber(version: number, cucumber: any) {
});
}
catch (error) {
throw new Error(`Cucumber version ${ version } is not supported yet.`);
throw new ConfigurationError(`Cucumber version ${ version } is not supported yet.`, error);
}
}

0 comments on commit 7cb7a9f

Please sign in to comment.