File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
fixtures/worker-logs/tests Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -306,4 +306,23 @@ describe("'wrangler dev' correctly displays logs", () => {
306
306
expect ( output ) . toMatchInlineSnapshot ( `[]` ) ;
307
307
} ) ;
308
308
} ) ;
309
+
310
+ describe ( "nodejs compat process v2" , ( ) => {
311
+ test ( "default behavior" , async ( { expect } ) => {
312
+ const output = await getWranglerDevOutput ( "module" , [
313
+ "--compatibility-flags=enable_nodejs_process_v2" ,
314
+ "--compatibility-flags=nodejs_compat" ,
315
+ ] ) ;
316
+ expect ( output ) . toMatchInlineSnapshot ( `
317
+ [
318
+ "<<<<< console.info() message >>>>>",
319
+ "<<<<< console.log() message >>>>>",
320
+ "X [ERROR] <<<<< console.error() message >>>>>",
321
+ "stderr: <<<<< stderr.write() message >>>>>",
322
+ "stdout: <<<<< stdout.write() message >>>>>",
323
+ "▲ [WARNING] <<<<< console.warning() message >>>>>",
324
+ ]
325
+ ` ) ;
326
+ } ) ;
327
+ } ) ;
309
328
} ) ;
You can’t perform that action at this time.
0 commit comments