mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Merge pull request #32248 from teggno/expectNoConflict
detox: Prevent exporting global "expect" from other modules.
This commit is contained in:
Vendored
+7
-1
@@ -434,4 +434,10 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
export { by, detox, device, element, expect, waitFor };
|
||||
export { by, detox, device, element, waitFor };
|
||||
|
||||
// Not exporting the global `expect` from the top of the file here
|
||||
// because `expect` conflicts with the global `expect` of jest and
|
||||
// therefore exporting it doesn't work. The global `expect` is kept
|
||||
// for backwards compatibility though.
|
||||
export const expect: Detox.Expect<Detox.Expect<any>>;
|
||||
|
||||
Reference in New Issue
Block a user