Skip to content

Commit dc92a73

Browse files
committed
feedback
1 parent d4bf611 commit dc92a73

File tree

1 file changed

+32
-61
lines changed

1 file changed

+32
-61
lines changed

packages/driver/src/cypress.ts

Lines changed: 32 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -104,72 +104,43 @@ class $Cypress {
104104
emitThen: any
105105
emitMap: any
106106

107-
$Cypress: any
108-
Cy: any
109-
Chainer: any
110-
Command: any
111-
dom: any
112-
errorMessages: any
113-
Keyboard: any
114-
Location: any
115-
Log: any
116-
LocalStorage: any
117-
Mocha: any
118-
resolveWindowReference: any
119-
resolveLocationReference: any
120-
Mouse: any
121-
Runner: any
122-
Server: any
123-
Screenshot: any
124-
SelectorPlayground: any
125-
utils: any
126-
_: any
127-
Blob: any
128-
Buffer: any
129-
Promise: any
130-
minimatch: any
131-
sinon: any
132-
lolex: any
107+
// attach to $Cypress to access
108+
// all of the constructors
109+
// to enable users to monkeypatch
110+
$Cypress = $Cypress
111+
Cy = $Cy
112+
Chainer = $Chainer
113+
Command = $Command
114+
dom = $dom
115+
errorMessages = $errorMessages
116+
Keyboard = $Keyboard
117+
Location = $Location
118+
Log = $Log
119+
LocalStorage = $LocalStorage
120+
Mocha = $Mocha
121+
resolveWindowReference = resolvers.resolveWindowReference
122+
resolveLocationReference = resolvers.resolveLocationReference
123+
Mouse = {
124+
create: createMouse,
125+
}
126+
127+
Runner = $Runner
128+
Server = $Server
129+
Screenshot = $Screenshot
130+
SelectorPlayground = $SelectorPlayground
131+
utils = $utils
132+
_ = _
133+
Blob = blobUtil
134+
Buffer = Buffer
135+
Promise = Promise
136+
minimatch = minimatch
137+
sinon = sinon
138+
lolex = fakeTimers
133139

134140
static $: any
135141
static utils: any
136142

137143
constructor (config = {}) {
138-
// attach to $Cypress to access
139-
// all of the constructors
140-
// to enable users to monkeypatch
141-
this.$Cypress = $Cypress
142-
this.Cy = $Cy
143-
this.Chainer = $Chainer
144-
this.Cookies = $Cookies
145-
this.Command = $Command
146-
this.Commands = $Commands
147-
this.dom = $dom
148-
this.errorMessages = $errorMessages
149-
this.Keyboard = $Keyboard
150-
this.Location = $Location
151-
this.Log = $Log
152-
this.LocalStorage = $LocalStorage
153-
this.Mocha = $Mocha
154-
this.resolveWindowReference = resolvers.resolveWindowReference
155-
this.resolveLocationReference = resolvers.resolveLocationReference
156-
this.Mouse = {
157-
create: createMouse,
158-
}
159-
160-
this.Runner = $Runner
161-
this.Server = $Server
162-
this.Screenshot = $Screenshot
163-
this.SelectorPlayground = $SelectorPlayground
164-
this.utils = $utils
165-
this._ = _
166-
this.Blob = blobUtil
167-
this.Buffer = Buffer
168-
this.Promise = Promise
169-
this.minimatch = minimatch
170-
this.sinon = sinon
171-
this.lolex = fakeTimers
172-
173144
this.cy = null
174145
this.chai = null
175146
this.mocha = null

0 commit comments

Comments
 (0)