Skip to content

Commit

Permalink
Investigation 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuAndrade committed Oct 14, 2023
1 parent 535c9a9 commit 8099be3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./",
Expand Down
1 change: 1 addition & 0 deletions apps/server/src/utils/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8099be3

Please sign in to comment.