Skip to content

Commit 3ad6c36

Browse files
committed
fix issues
1 parent f5d326a commit 3ad6c36

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/driver/cypress/plugins/server.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const multer = require('multer')
1010
const upload = multer({ dest: 'cypress/_test-output/' })
1111

1212
const PATH_TO_SERVER_PKG = path.dirname(require.resolve('@packages/server'))
13-
const PATH_TO_RUNNER_PKG = path.dirname(require.resolve('@packages/runner'))
13+
const { getPathToDist } = require('@packages/resolve-dist')
14+
1415
const httpPorts = [3500, 3501]
1516
const httpsPort = 3502
1617

@@ -183,9 +184,7 @@ const createApp = (port) => {
183184

184185
app.get('/cypress_multidomain_runner.js', (req, res) => {
185186
res.type('application/javascript')
186-
res.sendFile(path.join('dist', 'cypress_multidomain_runner.js'), {
187-
root: path.join(PATH_TO_RUNNER_PKG, '..'),
188-
})
187+
res.sendFile(getPathToDist('runner', 'cypress_multidomain_runner.js'))
189188
})
190189

191190
let _var = ''

packages/driver/src/cypress/cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import $Timers from '../cy/timers'
2525
import $Timeouts from '../cy/timeouts'
2626
import $Retries from '../cy/retries'
2727
import $Stability from '../cy/stability'
28-
import $Overrides from '../cy/overrides'
28+
import * as $Overrides from '../cy/overrides'
2929
import $Snapshots from '../cy/snapshots'
3030
import { $Command } from './command'
3131
import $CommandQueue from './command_queue'

0 commit comments

Comments
 (0)