Skip to content

Commit 26e4f92

Browse files
chore: make create function on server.ts obsolete (#18615)
Co-authored-by: Emily Rohrbough <[email protected]>
1 parent 489be7a commit 26e4f92

File tree

2 files changed

+458
-485
lines changed

2 files changed

+458
-485
lines changed

packages/driver/src/cy/commands/xhr.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Promise from 'bluebird'
55
import $utils from '../../cypress/utils'
66
import $errUtils from '../../cypress/error_utils'
77
import $stackUtils from '../../cypress/stack_utils'
8-
import $Server, { Server } from '../../cypress/server'
8+
import { Server } from '../../cypress/server'
99
import { $Location } from '../../cypress/location'
1010

1111
let server: Server | null = null
@@ -103,7 +103,7 @@ type XHRConsoleProps = {
103103
const startXhrServer = (cy, state, config) => {
104104
const logs = {}
105105

106-
server = $Server.create({
106+
server = new Server({
107107
xhrUrl: config('xhrUrl'),
108108
stripOrigin,
109109

0 commit comments

Comments
 (0)