@@ -5,6 +5,7 @@ import { createContainer } from '../../../dist/core/dev/container.js';
55import { createViteLoader } from '../../../dist/core/module-loader/vite.js' ;
66import { createRoutesList , matchAllRoutes } from '../../../dist/core/routing/index.js' ;
77import { getSortedPreloadedMatches } from '../../../dist/prerender/routing.js' ;
8+ import { AstroServerPipeline } from '../../../dist/vite-plugin-app/pipeline.js' ;
89import { createDevelopmentManifest } from '../../../dist/vite-plugin-astro-server/plugin.js' ;
910import testAdapter from '../../test-adapter.js' ;
1011import {
@@ -13,7 +14,6 @@ import {
1314 createRequestAndResponse ,
1415 defaultLogger ,
1516} from '../test-utils.js' ;
16- import { AstroServerPipeline } from '../../../dist/vite-plugin-app/pipeline.js' ;
1717
1818const fileSystem = {
1919 '/src/pages/[serverDynamic].astro' : `
@@ -151,7 +151,12 @@ describe('Route matching', () => {
151151 } ,
152152 defaultLogger ,
153153 ) ;
154- pipeline = AstroServerPipeline . create ( manifestData , { loader, logger : defaultLogger , manifest, settings } ) ;
154+ pipeline = AstroServerPipeline . create ( manifestData , {
155+ loader,
156+ logger : defaultLogger ,
157+ manifest,
158+ settings,
159+ } ) ;
155160 } ) ;
156161
157162 after ( async ( ) => {
@@ -161,7 +166,12 @@ describe('Route matching', () => {
161166 describe ( 'Matched routes' , ( ) => {
162167 it ( 'should be sorted correctly' , async ( ) => {
163168 const matches = matchAllRoutes ( '/try-matching-a-route' , manifestData ) ;
164- const preloadedMatches = await getSortedPreloadedMatches ( { pipeline, matches, settings, manifest } ) ;
169+ const preloadedMatches = await getSortedPreloadedMatches ( {
170+ pipeline,
171+ matches,
172+ settings,
173+ manifest,
174+ } ) ;
165175 const sortedRouteNames = preloadedMatches . map ( ( match ) => match . route . route ) ;
166176
167177 assert . deepEqual ( sortedRouteNames , [
@@ -175,7 +185,12 @@ describe('Route matching', () => {
175185 } ) ;
176186 it ( 'nested should be sorted correctly' , async ( ) => {
177187 const matches = matchAllRoutes ( '/nested/try-matching-a-route' , manifestData ) ;
178- const preloadedMatches = await getSortedPreloadedMatches ( { pipeline, matches, settings, manifest } ) ;
188+ const preloadedMatches = await getSortedPreloadedMatches ( {
189+ pipeline,
190+ matches,
191+ settings,
192+ manifest,
193+ } ) ;
179194 const sortedRouteNames = preloadedMatches . map ( ( match ) => match . route . route ) ;
180195
181196 assert . deepEqual ( sortedRouteNames , [
0 commit comments