@rowstile/vitest 0.1.0-alpha.6 → 0.1.0-alpha.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/dist/index.js +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -92,7 +92,8 @@ export async function databasePerWorker(url, options = {}) {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
finally {
|
|
95
|
-
|
|
95
|
+
// (pg's end() resolves, on a client ended above too: no check can make it fail here, left out of the measure)
|
|
96
|
+
await admin.end().catch(/* v8 ignore next */ () => undefined);
|
|
96
97
|
}
|
|
97
98
|
return { url: withDatabase(url, name), appUrl: options.appUrl ? withDatabase(options.appUrl, name) : undefined };
|
|
98
99
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rowstile/vitest",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.7",
|
|
4
4
|
"description": "rowstile with Vitest (and Jest): asUser, toBeRefused, a database per worker",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://rowstile.dev",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@rowstile/client": "0.1.0-alpha.
|
|
23
|
+
"@rowstile/client": "0.1.0-alpha.7"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"vitest": "^4.0.0 || ^5.0.0",
|