-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c15d129
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/node_modules | ||
/pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Feature: Hear Shout | ||
Scenario: Listener is within range | ||
Given Lucy is located 15 meters from Sean | ||
When Sean shouts "free bagels at Sean's" | ||
Then Lucy hears sean's message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const { Given, When, Then } = require('@cucumber/cucumber') | ||
|
||
// Given Lucy is located 15 meters from Sean | ||
// Undefined. Implement with the following snippet: | ||
|
||
Given('Lucy is located {int} meters from Sean', function (distance) { | ||
// Given('Lucy is located {float} meters from Sean', function (float) { | ||
// Write code here that turns the phrase above into concrete actions | ||
console.log(distance) | ||
return 'pending'; | ||
}); | ||
|
||
// When Sean shouts "free bagels at Sean's" | ||
// Undefined. Implement with the following snippet: | ||
|
||
When('Sean shouts {string}', function (string) { | ||
// Write code here that turns the phrase above into concrete actions | ||
return 'pending'; | ||
}); | ||
|
||
// Then Lucy hears sean's message | ||
// Undefined. Implement with the following snippet: | ||
|
||
Then('Lucy hears sean\'s message', function () { | ||
// Write code here that turns the phrase above into concrete actions | ||
return 'pending'; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "bdd-cucumber", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "cucumber-js" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@cucumber/cucumber": "^8.1.2", | ||
"hamjest": "^3.7.3" | ||
} | ||
} |