charlierudolph / cucumber-snippets-coffee-script Goto Github PK
View Code? Open in Web Editor NEWCoffeeScript snippets for Cucumber.js
License: MIT License
CoffeeScript snippets for Cucumber.js
License: MIT License
With cucumber 1.3.0, the builder is now passed an interface which is either synchronous / callback / generator / promise.
See the new default syntax for an example.
https://github.com/cucumber/cucumber-js/blob/v1.3.0/lib/cucumber/support_code/step_definition_snippet_builder/javascript_syntax.js
And the feature test
https://github.com/cucumber/cucumber-js/blob/v1.3.0/features/step_definition_snippets_interfaces.feature
Hi, I'm new to cucumber (this may be the issue). And at the same time, I notice that my installed version, Cucumber 4.0.0, is a very fresh release (so this might be the issue too).
So, just checking, but is this project's README still valid for Cucumber v4? With a cucumber.js
of:
var compileWithCoffee = "--require-module coffeescript/register --require features/**/*.coffee",
coffeeSnippets = "--snippet-syntax ./node_modules/cucumber-snippets-coffee-script";
module.exports = {
default: [ compileWithCoffee, coffeeSnippets ].join(" ")
};
I have the following experience:
$ node_modules/.bin/cucumber-js
error: unknown option `--snippet-syntax'
I also tried setting --format-options '{"snippetSyntax":"./node_modules/cucumber-snippets-coffee-script"}'
instead but then this project started throwing TypeError
s.
For confidentiality reasons I can't paste the error stacktrace, but I can tell you it's calling 'length' on an undefined value at node_modules/cucumber-snippets-coffee-script/index.js:4:47
.
Thanks for any time spent looking into this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.