@adaptivestone/framework 5.0.0-beta.6 → 5.0.0-beta.7
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/server.d.ts +1 -1
- package/tests/setupVitest.js +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
### 5.0.0-beta.7
|
|
2
|
+
[UPDATE] update deps
|
|
3
|
+
[UPDATE] change vitest shutdown behavior as mongo driver v6.13 change befaviur that affect us (MongoClient.close now closes any outstanding cursors)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
1
8
|
### 5.0.0-beta.5
|
|
2
9
|
|
|
3
10
|
[BREAKING] remove minimist CLI parsing and replace it by commandArguments parser
|
package/package.json
CHANGED
package/server.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ declare class Server {
|
|
|
46
46
|
/**
|
|
47
47
|
* Start server (http + init all http ralated functions)
|
|
48
48
|
*/
|
|
49
|
-
startServer(callbackBefore404?: Promise<null>): Promise<null>;
|
|
49
|
+
startServer(callbackBefore404?: () => Promise<null>): Promise<null>;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* Do an initialization (config reading, etc)
|
package/tests/setupVitest.js
CHANGED
|
@@ -102,6 +102,11 @@ afterAll(async () => {
|
|
|
102
102
|
if (typeof global.testSetup.afterAll === 'function') {
|
|
103
103
|
await global.testSetup.afterAll();
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
try {
|
|
106
|
+
await mongoose.connection.db.dropDatabase(); // clean database after test
|
|
107
|
+
} catch {
|
|
108
|
+
// that ok. No mongoose connection
|
|
109
|
+
}
|
|
110
|
+
|
|
106
111
|
await mongoose.disconnect();
|
|
107
112
|
});
|