Skip to content

Commit

Permalink
add port sharing docker compose mosquitto
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushik-rishi committed Oct 4, 2023
1 parent 2ec3dfb commit de5df6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"homepage": "https://github.com/asyncapi/nodejs-template#readme",
"scripts": {
"test": "rimraf test/temp && jest --modulePathIgnorePatterns='./template'",
"test": "rimraf test/temp && jest --forceExit --modulePathIgnorePatterns='./template'",
"test:updateSnapshot": "rimraf test/temp && jest --updateSnapshot --modulePathIgnorePatterns='./template'",
"lint": "eslint --max-warnings 0 --config .eslintrc .",
"lint:fix": "eslint --fix --config .eslintrc .",
Expand Down
2 changes: 2 additions & 0 deletions test/integration-tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
services:
mqtt:
image: "eclipse-mosquitto:1.5"
ports:
- "1883:1883"
1 change: 0 additions & 1 deletion test/integration-tests/mqtt-publish/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ describe('MQTT Connection Setup and Message Processing', () => {

// Parsing and comparing the received JSON payload
const jsonMessage = JSON.stringify(JSON.parse(message));
console.log('bois the json message is ', jsonMessage);

expect(jsonMessage).toBe('{"command":"on"}');
});
Expand Down

0 comments on commit de5df6d

Please sign in to comment.