File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { buildBrowserFromString } from "../browserstack/buildBrowserFromString.j
99import { run as runTests } from "../run.js" ;
1010import readYAML from "../lib/readYAML.js" ;
1111import { createTestServer } from "../createTestServer.js" ;
12- import { fileURLToPath , pathToFileURL } from "node:url" ;
12+ import { pathToFileURL } from "node:url" ;
1313
1414const program = new Command ( ) ;
1515const DEFAULT_PORT = 3000 ;
@@ -253,7 +253,7 @@ async function parseMiddleware( config, options ) {
253253 const middleware = await Promise . all (
254254 [ ...( config . middleware ?? [ ] ) , ...( options . middleware ?? [ ] ) ] . map (
255255 async ( mw ) => {
256- const module = await import ( fileURLToPath ( resolve ( process . cwd ( ) , mw ) ) ) ;
256+ const module = await import ( pathToFileURL ( resolve ( process . cwd ( ) , mw ) ) ) ;
257257 return module . default ;
258258 }
259259 )
You can’t perform that action at this time.
0 commit comments