Package Exports
- intern-cucumber
- intern-cucumber/plugin.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (intern-cucumber) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
intern-cucumber
cucumber-js interface for intern
See https://theintern.io/docs.html#Intern/4 for details on how to start testing with Intern.
Quickstart
Install intern and intern-cucumber
npm install --save-dev intern intern-cucumber
Add the plugin to your intern.json
:
"browser": {
"plugins": {
"node_modules/intern-cucumber/browser/plugin.js"
}
}
"node": {
"plugins": {
"node_modules/intern-cucumber/plugin.js"
}
}
Load the interface and write tests:
const { registerCucumber, Given, When, Then } = intern.getInterface('cucumber');
registerCucumber(<name>, <featureSource>, <support functions>);
See https://github.com/rhpijnacker/intern-cucumber-examples for more examples