You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,10 +40,19 @@ Written in AVA. Please see /test/\*.spec.ts for examples. When writing driver te
40
40
41
41
- By default, only the Loki driver tests will run. This is because not every architecture can run every DB
42
42
- Setting `process.env.MONGO_URI` will enable MongoDB tests using an external MongoDB instance. Please ensure it supports Replica Sets
43
-
- Setting `process.env.POSTGRES_URI` will enable Postgres tests using an external Postgres instance
43
+
- Setting `process.env.POSTGRES_URL` will enable Postgres tests using an external Postgres instance
44
44
45
45
Until [this ava issue](https://github.com/avajs/ava/issues/2979) is resolved, we work around this by selecting `test`/`test.skip` as a runtime evaluation.
46
46
47
+
#### 🐋🌿 Docker + Mongo
48
+
49
+
These tests work with the docker image for mongodb, with the following caveats:
50
+
51
+
1. After pulling, you must log into the instance and run `rs.initiate()` to enable the replica set
52
+
2. You can then connect via Direct Connection with a URI such as `mongodb://127.0.0.1:27017/?replicaSet=rs0&directConnection=true`
53
+
54
+
You may also use a free Atlas instance from MongoDB to test this driver, as all Atlas instances run replica sets by default.
55
+
47
56
### 🏁 E2E Testing
48
57
49
58
End to End tests are accepted. Please use the `LokiAdapter` for any tests, as it does not mandate the external dependencies to be loaded.
0 commit comments