We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97a2d25 commit 45b9670Copy full SHA for 45b9670
packages/driver/src/cy/chai.ts
@@ -45,11 +45,12 @@ let restoreAsserts = null
45
let overrideExpect = null
46
let overrideChaiAsserts = null
47
48
-export let create: ((specWindow, state, assertFn) => ({
+type CreateFunc = ((specWindow, state, assertFn) => ({
49
chai: Chai.ChaiStatic
50
expect: (val: any, message?: string) => Chai.Assertion
51
assert: any
52
-})) | null = null
+}))
53
+export let create: CreateFunc | null = null
54
55
chai.use(sinonChai)
56
@@ -549,7 +550,7 @@ chai.use((chai, u) => {
549
550
})
551
552
export interface IChai {
- expect: ReturnType<typeof create>['expect']
553
+ expect: ReturnType<CreateFunc>['expect']
554
}
555
556
export default {
0 commit comments