@@ -3,7 +3,7 @@ import { EventEmitter } from 'node:events';
33import { ChildProcess } from 'node:child_process' ;
44
55import { Readable } from 'stream' ;
6- import { PluginIpcBridge } from './ipc-bridge .js' ;
6+ import { PluginProcess } from './plugin-process .js' ;
77import { mock } from 'node:test' ;
88import { expect } from '@oclif/test' ;
99import * as chai from 'chai' ;
@@ -30,7 +30,7 @@ describe('Plugin IPC Bridge tests', async () => {
3030 const process = mockChildProcess ( ) ;
3131 const sendMock = mock . method ( process , 'send' ) ;
3232
33- const ipcBridge = new PluginIpcBridge ( process ) ;
33+ const ipcBridge = new PluginProcess ( process ) ;
3434 ipcBridge . sendMessage ( { cmd : 'message' , data : 'data' } )
3535
3636 expect ( sendMock . mock . calls . length ) . to . eq ( 1 ) ;
@@ -39,7 +39,7 @@ describe('Plugin IPC Bridge tests', async () => {
3939
4040 it ( 'send a message and receives the response' , async ( ) => {
4141 const process = mockChildProcess ( ) ;
42- const ipcBridge = new PluginIpcBridge ( process ) ;
42+ const ipcBridge = new PluginProcess ( process ) ;
4343
4444 try {
4545 await Promise . all ( [
@@ -53,7 +53,7 @@ describe('Plugin IPC Bridge tests', async () => {
5353
5454 it ( 'validates bad responses' , async ( ) => {
5555 const process = mockChildProcess ( ) ;
56- const ipcBridge = new PluginIpcBridge ( process ) ;
56+ const ipcBridge = new PluginProcess ( process ) ;
5757
5858 try {
5959 await Promise . all ( [
@@ -67,7 +67,7 @@ describe('Plugin IPC Bridge tests', async () => {
6767
6868 it ( 'does not leave additional listeners' , async ( ) => {
6969 const process = mockChildProcess ( ) ;
70- const ipcBridge = new PluginIpcBridge ( process ) ;
70+ const ipcBridge = new PluginProcess ( process ) ;
7171
7272 // NodeJS promise.all is executed in order
7373 await Promise . all ( [
@@ -82,7 +82,7 @@ describe('Plugin IPC Bridge tests', async () => {
8282
8383 it ( 'does not interfere with existing listeners' , async ( ) => {
8484 const process = mockChildProcess ( ) ;
85- const ipcBridge = new PluginIpcBridge ( process ) ;
85+ const ipcBridge = new PluginProcess ( process ) ;
8686 process . on ( 'message' , ( ) => {
8787 } )
8888
@@ -96,7 +96,7 @@ describe('Plugin IPC Bridge tests', async () => {
9696
9797 it ( 'allows new listeners to be added while waiting for the result' , async ( ) => {
9898 const process = mockChildProcess ( ) ;
99- const ipcBridge = new PluginIpcBridge ( process ) ;
99+ const ipcBridge = new PluginProcess ( process ) ;
100100
101101 await Promise . all ( [
102102 ipcBridge . sendMessageForResult ( { cmd : 'message' , data : 'data' } ) ,
0 commit comments