diff --git a/apps/server/package.json b/apps/server/package.json index 9dde5392..a1a77cdd 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -9,7 +9,7 @@ "start:dev": "cross-env NODE_ENV=development nodemon ./src/server.ts", "build": "tsc -p .", "test": "cross-env NODE_ENV=test MQTT_PORT=1884 mocha --recursive -r ts-node/register ./test/setup.ts ./test/**/plugin.stop.test.ts -exit", - "test:junit": "cross-env NODE_ENV=test MQTT_PORT=1884 mocha --reporter ./test/utils/junit-spec-reporter.js --reporter-options mochaFile=./test-results.xml --recursive -r ts-node/register ./test/setup.ts ./test/**/*.test.ts -exit", + "test:junit": "cross-env NODE_ENV=test MQTT_PORT=1884 mocha --reporter ./test/utils/junit-spec-reporter.js --reporter-options mochaFile=./test-results.xml --recursive -r ts-node/register ./test/setup.ts ./test/**/plugin.stop.test.ts -exit", "coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov", "coverage:junit": "nyc pnpm test:junit && nyc report --reporter=text-lcov > coverage.lcov", "lint": "eslint --ext .js,.jsx,.ts,.tsx ./", diff --git a/apps/server/src/utils/event.ts b/apps/server/src/utils/event.ts index e5a9963a..310a39cb 100644 --- a/apps/server/src/utils/event.ts +++ b/apps/server/src/utils/event.ts @@ -10,6 +10,7 @@ export default class Event { public static emitter = new EventEmitter(); static emit(event: EventsType | DevicesActions, ...args: any) { + console.trace(event); this.emitter.emit(event, ...args); }