@codefresh-io/eventbus 3.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -0
  2. package/package.json +8 -6
package/README.md CHANGED
@@ -53,3 +53,13 @@ process.on('SIGTERM', async () => {
53
53
  }
54
54
  });
55
55
  ```
56
+
57
+ ## Running integration tests
58
+
59
+ Integration tests start the containers up RabbitMQ and PostgreSQL via Docker Compose, run `test/integration.js` against them, and then shut the containers down. Docker (with the `docker compose` plugin) must be running locally.
60
+ ```sh
61
+ yarn install
62
+ ```
63
+ ```sh
64
+ yarn test-integration
65
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codefresh-io/eventbus",
3
- "version": "3.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -10,7 +10,9 @@
10
10
  "scripts": {
11
11
  "test": "echo \"Not implemented\" && exit 0",
12
12
  "lint": "echo \"Not implemented\" && exit 0",
13
- "build": "echo \"Not required\" && exit 0"
13
+ "build": "echo \"Not required\" && exit 0",
14
+ "test-integration": "docker compose -p cf-eventbus up -d && (yarn run-integration; status=$?; docker compose -p cf-eventbus down; exit $status)",
15
+ "run-integration": "node ./test/integration.js"
14
16
  },
15
17
  "repository": {
16
18
  "type": "git",
@@ -28,14 +30,14 @@
28
30
  "dependencies": {
29
31
  "amqplib": "^0.10.9",
30
32
  "cf-errors": "^0.1.17",
31
- "pg": "^8.19.0",
32
- "pg-cursor": "^1.2.0"
33
+ "pg": "^8.21.0",
34
+ "pg-cursor": "^2.20.0"
33
35
  },
34
36
  "devDependencies": {
35
- "@codefresh-io/cf-telemetry": "^3.11.1"
37
+ "@codefresh-io/cf-telemetry": "^4.2.1"
36
38
  },
37
39
  "peerDependencies": {
38
- "@codefresh-io/cf-telemetry": "^3.11.1"
40
+ "@codefresh-io/cf-telemetry": "^4.0.0"
39
41
  },
40
42
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
41
43
  }