diff --git a/bin/testObservability/helper/constants.js b/bin/testObservability/helper/constants.js index 9fd417f5..dbf5e053 100644 --- a/bin/testObservability/helper/constants.js +++ b/bin/testObservability/helper/constants.js @@ -33,4 +33,4 @@ exports.TEST_OBSERVABILITY_REPORTER = 'browserstack-cypress-cli/bin/testObservab exports.TEST_OBSERVABILITY_REPORTER_LOCAL = path.join(__dirname, '..', 'reporter'); -exports.PENDING_QUEUS_FILE = `pending_queues_${process.pid}.json`; +exports.PENDING_QUEUES_FILE = `pending_queues_${process.pid}.json`; diff --git a/bin/testObservability/helper/requestQueueHandler.js b/bin/testObservability/helper/requestQueueHandler.js index c0341f1b..172384f2 100644 --- a/bin/testObservability/helper/requestQueueHandler.js +++ b/bin/testObservability/helper/requestQueueHandler.js @@ -57,7 +57,7 @@ class RequestQueueHandler { fs.writeFileSync(path.join(__dirname, PENDING_QUEUES_FILE), JSON.stringify(this.queue)); this.queue = []; - cp.spawnSync('node', [path.join(__dirname, 'cleanupQueueSync.js'), path.join(__dirname, PENDING_QUEUS_FILE)], {stdio: 'inherit'}); + cp.spawnSync('node', [path.join(__dirname, 'cleanupQueueSync.js'), path.join(__dirname, PENDING_QUEUES_FILE)], {stdio: 'inherit'}); fs.unlinkSync(path.join(__dirname, PENDING_QUEUES_FILE)); } diff --git a/bin/testObservability/reporter/index.js b/bin/testObservability/reporter/index.js index 5914a051..bbf098ea 100644 --- a/bin/testObservability/reporter/index.js +++ b/bin/testObservability/reporter/index.js @@ -15,8 +15,6 @@ const { v4: uuidv4 } = require('uuid'); const { IPC_EVENTS } = require('../helper/constants'); const { startIPCServer } = require('../plugin/ipcServer'); -const ipc = require('node-ipc'); - const HOOK_TYPES_MAP = { "before all": "BEFORE_ALL", "after all": "AFTER_ALL", @@ -200,7 +198,6 @@ class MyReporter { server.on(IPC_EVENTS.COMMAND, this.cypressCommandListener.bind(this)); server.on(IPC_EVENTS.CUCUMBER, this.cypressCucumberStepListener.bind(this)); server.on(IPC_EVENTS.PLATFORM_DETAILS, this.cypressPlatformDetailsListener.bind(this)); - this.ipcServer = server; }, (server) => { server.off(IPC_EVENTS.CONFIG, '*');