11import path from 'path'
2- import la from 'lazy-ass'
3- import check from 'check-more-types'
42import Debug from 'debug'
53import { Router } from 'express'
64
75import AppData from './util/app_data'
86import CacheBuster from './util/cache_buster'
97import specController from './controllers/spec'
108import reporter from './controllers/reporter'
11- import { runner } from './controllers/runner'
129import client from './controllers/client'
1310import files from './controllers/files'
1411import type { InitializeRoutes } from './routes'
@@ -17,13 +14,8 @@ const debug = Debug('cypress:server:routes-e2e')
1714
1815export const createRoutesE2E = ( {
1916 config,
20- specsStore,
21- getRemoteState,
2217 networkProxy,
23- getSpec,
24- getCurrentBrowser,
2518 onError,
26- testingType,
2719} : InitializeRoutes ) => {
2820 const routesE2E = Router ( )
2921
@@ -137,20 +129,5 @@ export const createRoutesE2E = ({
137129 res . sendFile ( file , { etag : false } )
138130 } )
139131
140- la ( check . unemptyString ( config . clientRoute ) , 'missing client route in config' , config )
141-
142- routesE2E . get ( `${ config . clientRoute } ` , ( req , res ) => {
143- debug ( 'Serving Cypress front-end by requested URL:' , req . url )
144-
145- runner . serve ( req , res , 'runner' , {
146- config,
147- testingType,
148- getSpec,
149- getCurrentBrowser,
150- getRemoteState,
151- specsStore,
152- } )
153- } )
154-
155132 return routesE2E
156133}
0 commit comments