@@ -266,7 +266,7 @@ describe("Error structure", () => {
266266 } ) ;
267267
268268 afterAll ( ( ) => {
269- fs . rmdirSync ( "tmp" , { recursive : true } ) ;
269+ fs . rmSync ( "tmp" , { recursive : true } ) ;
270270 } ) ;
271271 } ) ;
272272 } ) ;
@@ -415,7 +415,7 @@ describe("Error structure", () => {
415415 test ( "Invoke a plugin wrapper with malformed args" , async ( ) => {
416416 const client = await createClient ( ) ;
417417 const result = await client . invoke < Uint8Array > ( {
418- uri : SysNodeBundle . plugins . fileSystem . uri ,
418+ uri : SysNodeBundle . bundle . fileSystem . uri ,
419419 method : "readFile" ,
420420 args : {
421421 pathh : "packages/client/src/__tests__/core/index.ts" ,
@@ -432,7 +432,7 @@ describe("Error structure", () => {
432432 expect ( result . error ?. reason ) . toEqual (
433433 'The "path" argument must be of type string or an instance of Buffer or URL. Received undefined'
434434 ) ;
435- expect ( result . error ?. uri ) . toEqual ( Uri . from ( SysNodeBundle . plugins . fileSystem . uri ) . uri ) ;
435+ expect ( result . error ?. uri ) . toEqual ( Uri . from ( SysNodeBundle . bundle . fileSystem . uri ) . uri ) ;
436436 expect ( result . error ?. method ) . toEqual ( "readFile" ) ;
437437 expect ( result . error ?. args ) . toContain (
438438 '{\n "pathh": "packages/client/src/__tests__/core/index.ts"\n}'
@@ -445,7 +445,7 @@ describe("Error structure", () => {
445445 test ( "Invoke a plugin wrapper with a method that doesn't exist" , async ( ) => {
446446 const client = await createClient ( ) ;
447447 const result = await client . invoke < Uint8Array > ( {
448- uri : SysNodeBundle . plugins . fileSystem . uri ,
448+ uri : SysNodeBundle . bundle . fileSystem . uri ,
449449 method : "readFileNotFound" ,
450450 args : {
451451 path : __dirname + "/index.ts" ,
@@ -462,7 +462,7 @@ describe("Error structure", () => {
462462 expect (
463463 result . error ?. reason . startsWith ( "Plugin missing method " )
464464 ) . toBeTruthy ( ) ;
465- expect ( result . error ?. uri ) . toEqual ( Uri . from ( SysNodeBundle . plugins . fileSystem . uri ) . uri ) ;
465+ expect ( result . error ?. uri ) . toEqual ( Uri . from ( SysNodeBundle . bundle . fileSystem . uri ) . uri ) ;
466466 expect ( result . error ?. method ) . toEqual ( "readFileNotFound" ) ;
467467 } ) ;
468468
@@ -494,7 +494,7 @@ describe("Error structure", () => {
494494 test ( "Invoke a plugin wrapper that throws unexpectedly" , async ( ) => {
495495 const client = await createClient ( ) ;
496496 const result = await client . invoke < Uint8Array > ( {
497- uri : SysNodeBundle . plugins . fileSystem . uri ,
497+ uri : SysNodeBundle . bundle . fileSystem . uri ,
498498 method : "readFile" ,
499499 args : {
500500 path : "./this/path/does/not/exist.ts" ,
@@ -511,7 +511,7 @@ describe("Error structure", () => {
511511 expect (
512512 result . error ?. reason . startsWith ( "ENOENT: no such file or directory" )
513513 ) . toBeTruthy ( ) ;
514- expect ( result . error ?. uri ) . toEqual ( Uri . from ( SysNodeBundle . plugins . fileSystem . uri ) . uri ) ;
514+ expect ( result . error ?. uri ) . toEqual ( Uri . from ( SysNodeBundle . bundle . fileSystem . uri ) . uri ) ;
515515 expect ( result . error ?. method ) . toEqual ( "readFile" ) ;
516516 expect ( result . error ?. args ) . toEqual (
517517 '{\n "path": "./this/path/does/not/exist.ts"\n}'
0 commit comments