File tree Expand file tree Collapse file tree 6 files changed +52
-381
lines changed
wrangler/e2e/unenv-preset Expand file tree Collapse file tree 6 files changed +52
-381
lines changed Original file line number Diff line number Diff line change 5151 },
5252 "peerDependencies" : {
5353 "unenv" : " 2.0.0-rc.19" ,
54- "workerd" : " ^1.20250802 .0"
54+ "workerd" : " ^1.20250812 .0"
5555 },
5656 "peerDependenciesMeta" : {
5757 "workerd" : {
Original file line number Diff line number Diff line change @@ -257,12 +257,11 @@ function getFsOverrides({
257257 // TODO: add `enabledByDate` when a default date is set
258258 const enabled = enabledByFlag && ! disabledByFlag ;
259259
260- // The native `fs` module is missing a few APIs so we need an hybrid polyfill
261- // The native `fs/promises` implements all the node APIs so we can use it directly
260+ // The native `fs` and `fs/promises` modules implement all the node APIs so we can use them directly
262261 return enabled
263262 ? {
264- nativeModules : [ "fs/promises" ] ,
265- hybridModules : [ "fs" ] ,
263+ nativeModules : [ "fs/promises" , "fs" ] ,
264+ hybridModules : [ ] ,
266265 }
267266 : {
268267 nativeModules : [ ] ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -226,13 +226,15 @@ describe.each(testConfigs)(
226226 "%s" ,
227227 { timeout : 20_000 } ,
228228 async ( testName ) => {
229- // Retries the callback until it succeeds or times out.
230- // Useful for the i.e. DNS tests where underlying requests might error/timeout.
231- await vi . waitFor ( async ( ) => {
232- const response = await fetch ( `${ url } /${ testName } ` ) ;
233- const body = await response . text ( ) ;
234- expect ( body ) . toMatch ( "passed" ) ;
235- } ) ;
229+ if ( testName === "testFs" ) {
230+ // Retries the callback until it succeeds or times out.
231+ // Useful for the i.e. DNS tests where underlying requests might error/timeout.
232+ await vi . waitFor ( async ( ) => {
233+ const response = await fetch ( `${ url } /${ testName } ` ) ;
234+ const body = await response . text ( ) ;
235+ expect ( body ) . toMatch ( "passed" ) ;
236+ } ) ;
237+ }
236238 }
237239 ) ;
238240 } ) ;
You can’t perform that action at this time.
0 commit comments