@@ -439,8 +439,8 @@ describe('socket fix', async () => {
439439 async cmd => {
440440 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
441441 const output = stdout + stderr
442- expect ( output ) . toContain (
443- ' Unable to resolve a Socket account organization' ,
442+ expect ( output ) . toMatch (
443+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
444444 )
445445 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
446446 } ,
@@ -454,8 +454,8 @@ describe('socket fix', async () => {
454454 cwd : path . join ( fixtureBaseDir , 'pnpm/vulnerable-deps' ) ,
455455 } )
456456 const output = stdout + stderr
457- expect ( output ) . toContain (
458- ' Unable to resolve a Socket account organization' ,
457+ expect ( output ) . toMatch (
458+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
459459 )
460460 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
461461 } ,
@@ -470,8 +470,8 @@ describe('socket fix', async () => {
470470 cwd : path . join ( fixtureBaseDir , 'pnpm/monorepo' ) ,
471471 } )
472472 const output = stdout + stderr
473- expect ( output ) . toContain (
474- ' Unable to resolve a Socket account organization' ,
473+ expect ( output ) . toMatch (
474+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
475475 )
476476 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
477477 } ,
@@ -508,8 +508,8 @@ describe('socket fix', async () => {
508508 async cmd => {
509509 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
510510 const output = stdout + stderr
511- expect ( output ) . toContain (
512- ' Unable to resolve a Socket account organization' ,
511+ expect ( output ) . toMatch (
512+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
513513 )
514514 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
515515 } ,
@@ -521,8 +521,8 @@ describe('socket fix', async () => {
521521 async cmd => {
522522 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
523523 const output = stdout + stderr
524- expect ( output ) . toContain (
525- ' Unable to resolve a Socket account organization' ,
524+ expect ( output ) . toMatch (
525+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
526526 )
527527 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
528528 } ,
@@ -534,8 +534,8 @@ describe('socket fix', async () => {
534534 async cmd => {
535535 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
536536 const output = stdout + stderr
537- expect ( output ) . toContain (
538- ' Unable to resolve a Socket account organization' ,
537+ expect ( output ) . toMatch (
538+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
539539 )
540540 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
541541 } ,
@@ -554,8 +554,8 @@ describe('socket fix', async () => {
554554 async cmd => {
555555 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
556556 const output = stdout + stderr
557- expect ( output ) . toContain (
558- ' Unable to resolve a Socket account organization' ,
557+ expect ( output ) . toMatch (
558+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
559559 )
560560 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
561561 } ,
@@ -567,8 +567,8 @@ describe('socket fix', async () => {
567567 async cmd => {
568568 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
569569 const output = stdout + stderr
570- expect ( output ) . toContain (
571- ' Unable to resolve a Socket account organization' ,
570+ expect ( output ) . toMatch (
571+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
572572 )
573573 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
574574 } ,
@@ -580,8 +580,8 @@ describe('socket fix', async () => {
580580 async cmd => {
581581 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
582582 const output = stdout + stderr
583- expect ( output ) . toContain (
584- ' Unable to resolve a Socket account organization' ,
583+ expect ( output ) . toMatch (
584+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
585585 )
586586 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
587587 } ,
@@ -593,8 +593,8 @@ describe('socket fix', async () => {
593593 async cmd => {
594594 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
595595 const output = stdout + stderr
596- expect ( output ) . toContain (
597- ' Unable to resolve a Socket account organization' ,
596+ expect ( output ) . toMatch (
597+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
598598 )
599599 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
600600 } ,
@@ -616,8 +616,8 @@ describe('socket fix', async () => {
616616 cwd : path . join ( fixtureBaseDir , 'pnpm/vulnerable-deps' ) ,
617617 } )
618618 const output = stdout + stderr
619- expect ( output ) . toContain (
620- ' Unable to resolve a Socket account organization' ,
619+ expect ( output ) . toMatch (
620+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
621621 )
622622 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
623623 } ,
@@ -638,8 +638,8 @@ describe('socket fix', async () => {
638638 cwd : path . join ( fixtureBaseDir , 'pnpm/vulnerable-deps' ) ,
639639 } )
640640 const output = stdout + stderr
641- expect ( output ) . toContain (
642- ' Unable to resolve a Socket account organization' ,
641+ expect ( output ) . toMatch (
642+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
643643 )
644644 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
645645 } ,
@@ -662,8 +662,8 @@ describe('socket fix', async () => {
662662 cwd : path . join ( fixtureBaseDir , 'pnpm/vulnerable-deps' ) ,
663663 } )
664664 const output = stdout + stderr
665- expect ( output ) . toContain (
666- ' Unable to resolve a Socket account organization' ,
665+ expect ( output ) . toMatch (
666+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
667667 )
668668 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
669669 } ,
@@ -688,8 +688,8 @@ describe('socket fix', async () => {
688688 cwd : path . join ( fixtureBaseDir , 'pnpm/vulnerable-deps' ) ,
689689 } )
690690 const output = stdout + stderr
691- expect ( output ) . toContain (
692- ' Unable to resolve a Socket account organization' ,
691+ expect ( output ) . toMatch (
692+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
693693 )
694694 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
695695 } ,
@@ -713,8 +713,8 @@ describe('socket fix', async () => {
713713 cwd : path . join ( fixtureBaseDir , 'pnpm/monorepo' ) ,
714714 } )
715715 const output = stdout + stderr
716- expect ( output ) . toContain (
717- ' Unable to resolve a Socket account organization' ,
716+ expect ( output ) . toMatch (
717+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
718718 )
719719 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
720720 } ,
@@ -733,8 +733,8 @@ describe('socket fix', async () => {
733733 async cmd => {
734734 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
735735 const output = stdout + stderr
736- expect ( output ) . toContain (
737- ' Unable to resolve a Socket account organization' ,
736+ expect ( output ) . toMatch (
737+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
738738 )
739739 expect ( code ) . toBeGreaterThan ( 0 )
740740 } ,
@@ -780,8 +780,8 @@ describe('socket fix', async () => {
780780 async cmd => {
781781 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
782782 const output = stdout + stderr
783- expect ( output ) . toContain (
784- ' Unable to resolve a Socket account organization' ,
783+ expect ( output ) . toMatch (
784+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
785785 )
786786 expect ( code ) . toBeGreaterThan ( 0 )
787787 } ,
@@ -794,8 +794,8 @@ describe('socket fix', async () => {
794794 async cmd => {
795795 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
796796 const output = stdout + stderr
797- expect ( output ) . toContain (
798- ' Unable to resolve a Socket account organization' ,
797+ expect ( output ) . toMatch (
798+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
799799 )
800800 expect ( code ) . toBeGreaterThan ( 0 )
801801 } ,
@@ -848,7 +848,9 @@ describe('socket fix', async () => {
848848 async cmd => {
849849 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
850850 const output = stdout + stderr
851- expect ( output ) . toMatch ( / a p i t o k e n | a u t h e n t i c a t i o n | g i t h u b .* t o k e n / i)
851+ expect ( output ) . toMatch (
852+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
853+ )
852854 expect ( code ) . toBeGreaterThan ( 0 )
853855 } ,
854856 )
@@ -990,8 +992,8 @@ describe('socket fix', async () => {
990992 async cmd => {
991993 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
992994 const output = stdout + stderr
993- expect ( output ) . toContain (
994- ' Unable to resolve a Socket account organization' ,
995+ expect ( output ) . toMatch (
996+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
995997 )
996998 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
997999 } ,
@@ -1287,8 +1289,8 @@ describe('socket fix', async () => {
12871289 async cmd => {
12881290 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
12891291 const output = stdout + stderr
1290- expect ( output ) . toContain (
1291- ' Unable to resolve a Socket account organization' ,
1292+ expect ( output ) . toMatch (
1293+ / U n a b l e t o r e s o l v e | A n e r r o r w a s t h r o w n w h i l e r e q u e s t i n g / ,
12921294 )
12931295 expect ( code , 'should exit with non-zero code' ) . not . toBe ( 0 )
12941296 } ,
0 commit comments