Skip to content

Commit 0ed1996

Browse files
Copilotkobenguyent
andcommitted
Fix dtslint test errors in import-exports.types.ts
Co-authored-by: kobenguyent <7845001+kobenguyent@users.noreply.github.com>
1 parent 9a720fd commit 0ed1996

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

typings/tests/import-exports.types.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
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'
33
import defaultExport from 'codeceptjs'
44

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+
611
expectType<typeof CodeceptJS.Codecept>(codecept)
12+
expectType<typeof CodeceptJS.Codecept>(Codecept)
713
expectType<typeof CodeceptJS.output>(output)
814
expectType<typeof CodeceptJS.event>(event)
915
expectType<CodeceptJS.recorder>(recorder)
1016
expectType<typeof CodeceptJS.Config>(config)
1117
expectType<CodeceptJS.actor>(actor)
1218
expectType<typeof CodeceptJS.Helper>(helper)
19+
expectType<typeof CodeceptJS.Helper>(Helper)
1320
expectType<typeof CodeceptJS.pause>(pause)
1421
expectType<typeof CodeceptJS.within>(within)
1522
expectType<typeof CodeceptJS.DataTable>(dataTable)
1623
expectType<typeof CodeceptJS.DataTableArgument>(dataTableArgument)
1724
expectType<typeof CodeceptJS.store>(store)
1825
expectType<typeof CodeceptJS.Locator>(locator)
19-
expectType<typeof CodeceptJS.Secret>(Secret)
20-
expectType<typeof CodeceptJS.secret>(secret)
2126

2227
expectType<typeof defaultExport>(defaultExport)
23-
24-
const helperInstance = container.helpers('Playwright')

0 commit comments

Comments
 (0)