Skip to content

Commit

Permalink
add tsd test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss committed Jun 21, 2022
1 parent aaebeb7 commit 4527494
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test-d/api.ts
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)

0 comments on commit 4527494

Please sign in to comment.