@@ -3,6 +3,11 @@ import { readFile } from 'fs/promises'
33import { join } from 'path'
44import process from 'process'
55
6+ // @ts -expect-error TypeScript is complaining about the values for the `module`
7+ // and `moduleResolution` configuration properties, but changing those to more
8+ // modern values causes other packages to fail. Leaving this for now, but we
9+ // should have a proper fix for this.
10+ import { getURL as getBootstrapURL } from '@netlify/edge-functions-bootstrap/version'
611import getPort from 'get-port'
712import tmp from 'tmp-promise'
813import { v4 as uuidv4 } from 'uuid'
@@ -22,7 +27,7 @@ test('Starts a server and serves requests for edge functions', async () => {
2227 const servePath = join ( basePath , '.netlify' , 'edge-functions-serve' )
2328 const server = await serve ( {
2429 basePath,
25- bootstrapURL : 'https://edge.netlify.com/bootstrap/index-combined.ts' ,
30+ bootstrapURL : await getBootstrapURL ( ) ,
2631 port,
2732 servePath,
2833 } )
@@ -119,7 +124,7 @@ test('Serves edge functions in a monorepo setup', async () => {
119124 const servePath = join ( basePath , '.netlify' , 'edge-functions-serve' )
120125 const server = await serve ( {
121126 basePath,
122- bootstrapURL : 'https://edge.netlify.com/bootstrap/index-combined.ts' ,
127+ bootstrapURL : await getBootstrapURL ( ) ,
123128 port,
124129 rootPath,
125130 servePath,
0 commit comments