codeceptjs 4.0.1-beta.30 → 4.0.1-beta.32
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/lib/container.js +4 -2
- package/lib/workers.js +3 -0
- package/package.json +1 -1
package/lib/container.js
CHANGED
|
@@ -89,7 +89,7 @@ class Container {
|
|
|
89
89
|
container.support.I = mod
|
|
90
90
|
}
|
|
91
91
|
} catch (e) {
|
|
92
|
-
throw
|
|
92
|
+
throw e
|
|
93
93
|
}
|
|
94
94
|
} else {
|
|
95
95
|
// Create default actor - this sets up the callback in asyncHelperPromise
|
|
@@ -847,7 +847,9 @@ async function loadSupportObject(modulePath, supportObjectName) {
|
|
|
847
847
|
|
|
848
848
|
throw new Error(`Support object "${supportObjectName}" should be an object, class, or function, but got ${typeof actualObj}`)
|
|
849
849
|
} catch (err) {
|
|
850
|
-
|
|
850
|
+
const newErr = new Error(`Could not include object ${supportObjectName} from module '${modulePath}': ${err.message}`)
|
|
851
|
+
newErr.stack = err.stack
|
|
852
|
+
throw newErr
|
|
851
853
|
}
|
|
852
854
|
}
|
|
853
855
|
|
package/lib/workers.js
CHANGED
|
@@ -530,6 +530,9 @@ class Workers extends EventEmitter {
|
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
worker.on('message', message => {
|
|
533
|
+
if (message.workerIndex !== undefined) {
|
|
534
|
+
console.log(`[DEBUG] Received message from worker with workerIndex: ${message.workerIndex}`)
|
|
535
|
+
}
|
|
533
536
|
output.process(message.workerIndex)
|
|
534
537
|
|
|
535
538
|
// Handle test requests for pool mode
|