Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debt: add things to main entry point that people need (#1697)
* ensure hook parameters are exported * dont need to mark this arg as possibly undefined * export runtime options * expose formatter options
- Loading branch information
1 parent
13956f6
commit 389f65a
Showing
3 changed files
with
37 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,32 @@ | ||
import { After, Before } from '../' | ||
import { | ||
After, | ||
AfterAll, | ||
AfterStep, | ||
Before, | ||
BeforeAll, | ||
BeforeStep, | ||
ITestCaseHookParameter, | ||
ITestStepHookParameter, | ||
} from '../' | ||
|
||
// should allow argument-less hooks | ||
BeforeAll(function () {}) | ||
AfterAll(function () {}) | ||
Before(function () {}) | ||
After(function () {}) | ||
BeforeStep(function () {}) | ||
AfterStep(function () {}) | ||
|
||
// should allow typed arguments in hooks | ||
Before(function (param: ITestCaseHookParameter) {}) | ||
After(function (param: ITestCaseHookParameter) {}) | ||
BeforeStep(function (param: ITestStepHookParameter) {}) | ||
AfterStep(function (param: ITestStepHookParameter) {}) | ||
|
||
// should allow us to return 'skipped' from a test case hook | ||
Before(async function () { | ||
return 'skipped' | ||
}) | ||
|
||
After(async function () { | ||
return 'skipped' | ||
}) |