-
-
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.
export IConfiguration interface for API users (#2064)
* export IConfiguration interface for API users * update CHANGELOG.md * add tsd test
- Loading branch information
1 parent
0f5dab7
commit 9877338
Showing
3 changed files
with
8 additions
and
2 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,5 +1,8 @@ | ||
import { loadConfiguration, runCucumber } from '../api' | ||
import { IConfiguration, loadConfiguration, runCucumber } from '../api' | ||
|
||
// should allow api usage from /api subpath | ||
const { runConfiguration } = await loadConfiguration() | ||
const provided: Partial<IConfiguration> = { | ||
paths: ['features/foo.feature'], | ||
} | ||
const { runConfiguration } = await loadConfiguration({ provided }) | ||
const { success } = await runCucumber(runConfiguration) |