|
1 | 1 | import { expectType } from 'tsd' |
2 | | -import { container, codecept, output, event, recorder, config, actor, helper, pause, within, dataTable, dataTableArgument, store, locator, heal, ai, Workers, Secret, secret } from 'codeceptjs' |
| 2 | +import { container, codecept, Codecept, output, event, recorder, config, actor, helper, Helper, pause, within, dataTable, dataTableArgument, store, locator } from 'codeceptjs' |
3 | 3 | import defaultExport from 'codeceptjs' |
4 | 4 |
|
5 | | -expectType<typeof CodeceptJS.Container>(container) |
| 5 | +// Test that container can be imported and has the expected methods |
| 6 | +const helpers = container.helpers() |
| 7 | +const helper1 = container.helpers('Playwright') |
| 8 | +const support = container.support() |
| 9 | +const plugins = container.plugins() |
| 10 | + |
6 | 11 | expectType<typeof CodeceptJS.Codecept>(codecept) |
| 12 | +expectType<typeof CodeceptJS.Codecept>(Codecept) |
7 | 13 | expectType<typeof CodeceptJS.output>(output) |
8 | 14 | expectType<typeof CodeceptJS.event>(event) |
9 | 15 | expectType<CodeceptJS.recorder>(recorder) |
10 | 16 | expectType<typeof CodeceptJS.Config>(config) |
11 | 17 | expectType<CodeceptJS.actor>(actor) |
12 | 18 | expectType<typeof CodeceptJS.Helper>(helper) |
| 19 | +expectType<typeof CodeceptJS.Helper>(Helper) |
13 | 20 | expectType<typeof CodeceptJS.pause>(pause) |
14 | 21 | expectType<typeof CodeceptJS.within>(within) |
15 | 22 | expectType<typeof CodeceptJS.DataTable>(dataTable) |
16 | 23 | expectType<typeof CodeceptJS.DataTableArgument>(dataTableArgument) |
17 | 24 | expectType<typeof CodeceptJS.store>(store) |
18 | 25 | expectType<typeof CodeceptJS.Locator>(locator) |
19 | | -expectType<typeof CodeceptJS.Secret>(Secret) |
20 | | -expectType<typeof CodeceptJS.secret>(secret) |
21 | 26 |
|
22 | 27 | expectType<typeof defaultExport>(defaultExport) |
23 | | - |
24 | | -const helperInstance = container.helpers('Playwright') |
|
0 commit comments