@adonisjs/assembler 6.1.3-7 → 6.1.3-8
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/build/src/dev_server.js +0 -2
- package/build/src/test_runner.js +10 -5
- package/package.json +1 -1
package/build/src/dev_server.js
CHANGED
|
@@ -102,8 +102,6 @@ export class DevServer {
|
|
|
102
102
|
}
|
|
103
103
|
})
|
|
104
104
|
.catch((error) => {
|
|
105
|
-
this.#logger.warning('unable to connect to underlying HTTP server process');
|
|
106
|
-
this.#logger.fatal(error);
|
|
107
105
|
this.#onError?.(error);
|
|
108
106
|
this.#watcher?.close();
|
|
109
107
|
this.#assetsServer?.stop();
|
package/build/src/test_runner.js
CHANGED
|
@@ -126,11 +126,16 @@ export class TestRunner {
|
|
|
126
126
|
}
|
|
127
127
|
})
|
|
128
128
|
.catch((error) => {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
129
|
+
/**
|
|
130
|
+
* Since the tests runner set the `process.exitCode = 1`, execa will
|
|
131
|
+
* throw an exception. However, we should ignore it and keep the
|
|
132
|
+
* watcher on.
|
|
133
|
+
*/
|
|
134
|
+
if (mode === 'nonblocking') {
|
|
135
|
+
this.#onError?.(error);
|
|
136
|
+
this.#watcher?.close();
|
|
137
|
+
this.#assetsServer?.stop();
|
|
138
|
+
}
|
|
134
139
|
})
|
|
135
140
|
.finally(() => {
|
|
136
141
|
this.#isBusy = false;
|