File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ const multer = require('multer')
1010const upload = multer ( { dest : 'cypress/_test-output/' } )
1111
1212const 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+
1415const httpPorts = [ 3500 , 3501 ]
1516const 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 = ''
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import $Timers from '../cy/timers'
2525import $Timeouts from '../cy/timeouts'
2626import $Retries from '../cy/retries'
2727import $Stability from '../cy/stability'
28- import $Overrides from '../cy/overrides'
28+ import * as $Overrides from '../cy/overrides'
2929import $Snapshots from '../cy/snapshots'
3030import { $Command } from './command'
3131import $CommandQueue from './command_queue'
You can’t perform that action at this time.
0 commit comments