We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dddb5ca commit cd2f910Copy full SHA for cd2f910
1 file changed
test-packages/test-libs/index.js
@@ -4,11 +4,13 @@ const runServer = require('./run-server');
4
const killCliProcess = require('./kill-cli-process');
5
6
let server;
7
+let longRunningServerPromise;
8
9
const startServer = async (options) => {
10
const result = await runServer(options);
11
12
server = result.server;
13
+ longRunningServerPromise = result.longRunningServerPromise;
14
15
return result;
16
};
@@ -20,7 +22,9 @@ const stopServer = () => {
20
22
21
23
killCliProcess(server);
24
- server = null;
25
+ return longRunningServerPromise.then(() => {
26
+ server = null;
27
+ });
28
29
30
module.exports = {
0 commit comments