codeceptjs 4.0.2-beta.13 → 4.0.2-beta.14

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.
@@ -141,8 +141,18 @@ initPromise = (async function () {
141
141
 
142
142
  console.log(`[Worker ${workerIndex}] Loading config...`)
143
143
 
144
- // IMPORTANT: await is required here since getConfig is async
145
- const baseConfig = await getConfig(options.config || testRoot)
144
+ let baseConfig
145
+ try {
146
+ // IMPORTANT: await is required here since getConfig is async
147
+ baseConfig = await getConfig(options.config || testRoot)
148
+ console.log(`[Worker ${workerIndex}] Config loaded successfully`)
149
+ } catch (configErr) {
150
+ process.stderr.write(`[Worker ${workerIndex}] FAILED loading config: ${configErr.message}\n`)
151
+ process.stderr.write(`${configErr.stack}\n`)
152
+ // Ensure error is written before exit
153
+ await new Promise(resolve => setTimeout(resolve, 100))
154
+ process.exit(1)
155
+ }
146
156
 
147
157
  console.log(`[Worker ${workerIndex}] Config loaded, creating Codecept...`)
148
158
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "4.0.2-beta.13",
3
+ "version": "4.0.2-beta.14",
4
4
  "type": "module",
5
5
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
6
6
  "keywords": [