-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typescript: fix types for hook functions so they can return 'skipped' (…
…#1542) * add failing tsd test * fix hook function signature * dont need to install dep on long after all * update contributing docs * update changelog
- Loading branch information
1 parent
6489d97
commit 02fcc4f
Showing
7 changed files
with
679 additions
and
18 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
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
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
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
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,9 @@ | ||
import { After, Before } from '../' | ||
|
||
Before(async function () { | ||
return 'skipped' | ||
}) | ||
|
||
After(async function () { | ||
return 'skipped' | ||
}) |
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,15 @@ | ||
import { Given, When, Then } from '../' | ||
|
||
Given('some context', async function () {}) | ||
|
||
When('an action context', async function () {}) | ||
|
||
Then('verification', async function () {}) | ||
|
||
Given('a step that will be skipped', async function () { | ||
return 'skipped' | ||
}) | ||
|
||
Given('a step that we need to implement', async function () { | ||
return 'pending' | ||
}) |
Oops, something went wrong.