@friggframework/test 2.0.0--canary.703.12b980b.0 → 2.0.0--canary.707.df80bfd.0
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.
- package/mongodb.js +11 -1
- package/package.json +4 -4
package/mongodb.js
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
const { MongoMemoryServer } = require('mongodb-memory-server');
|
|
2
2
|
|
|
3
|
+
// mongodb-memory-server 8 defaults to MongoDB 5.0.19, whose Linux build links
|
|
4
|
+
// libcrypto.so.1.1. Ubuntu 24.04 (GitHub's ubuntu-latest since Oct 2026) ships
|
|
5
|
+
// only OpenSSL 3, so that mongod cannot start. 8.0 publishes Ubuntu 24.04
|
|
6
|
+
// builds. MONGOMS_VERSION still overrides it.
|
|
7
|
+
const MONGODB_VERSION = '8.0.4';
|
|
8
|
+
|
|
3
9
|
class TestMongo {
|
|
4
10
|
#mongoServer;
|
|
5
11
|
|
|
6
12
|
// Start the in-memory mongo instance and set env variable for the app to use in its connection.
|
|
7
13
|
async start() {
|
|
8
|
-
this.#mongoServer = await MongoMemoryServer.create(
|
|
14
|
+
this.#mongoServer = await MongoMemoryServer.create({
|
|
15
|
+
binary: { version: process.env.MONGOMS_VERSION || MONGODB_VERSION },
|
|
16
|
+
// The library's default, ephemeralForTest, was removed in MongoDB 7.
|
|
17
|
+
instance: { storageEngine: 'wiredTiger' },
|
|
18
|
+
});
|
|
9
19
|
process.env.MONGO_URI = this.#mongoServer.getUri();
|
|
10
20
|
console.log('Started in memory mongo server', process.env.MONGO_URI);
|
|
11
21
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/test",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.
|
|
4
|
+
"version": "2.0.0--canary.707.df80bfd.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@babel/eslint-parser": "^7.18.9",
|
|
7
7
|
"eslint": "^8.22.0",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"open": "^8.4.2"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@friggframework/eslint-config": "2.0.0--canary.
|
|
19
|
-
"@friggframework/prettier-config": "2.0.0--canary.
|
|
18
|
+
"@friggframework/eslint-config": "2.0.0--canary.707.df80bfd.0",
|
|
19
|
+
"@friggframework/prettier-config": "2.0.0--canary.707.df80bfd.0",
|
|
20
20
|
"jest": "^29.7.0",
|
|
21
21
|
"prettier": "^2.7.1"
|
|
22
22
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "df80bfd35bba914a7b20184bd2d5aa88f9f406ff"
|
|
43
43
|
}
|