codeceptjs 4.0.2-beta.10 → 4.0.2-beta.12

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.
@@ -49,6 +49,10 @@ if (poolMode && !options.debug) {
49
49
  // In pool mode without debug, allow test names and important output but suppress verbose details
50
50
  const originalWrite = process.stdout.write
51
51
  process.stdout.write = string => {
52
+ // Always allow Worker logs
53
+ if (string.includes('[Worker')) {
54
+ return originalWrite.call(process.stdout, string)
55
+ }
52
56
  // Allow test names (✔ or ✖), Scenario Steps, failures, and important markers
53
57
  if (
54
58
  string.includes('✔') ||
@@ -68,7 +72,12 @@ if (poolMode && !options.debug) {
68
72
  return originalWrite.call(process.stdout, string)
69
73
  }
70
74
  } else if (!poolMode && !options.debug && !options.verbose) {
75
+ const originalWrite = process.stdout.write
71
76
  process.stdout.write = string => {
77
+ // Always allow Worker logs
78
+ if (string.includes('[Worker')) {
79
+ return originalWrite.call(process.stdout, string)
80
+ }
72
81
  stdout += string
73
82
  return true
74
83
  }
@@ -140,7 +149,14 @@ initPromise = (async function () {
140
149
  codecept = new Codecept(config, optsWithChild)
141
150
 
142
151
  console.log(`[Worker ${workerIndex}] Initializing Codecept...`)
143
- await codecept.init(testRoot)
152
+ try {
153
+ await codecept.init(testRoot)
154
+ console.log(`[Worker ${workerIndex}] Codecept initialized successfully`)
155
+ } catch (initErr) {
156
+ console.error(`[Worker ${workerIndex}] FAILED during codecept.init():`, initErr.message)
157
+ console.error(initErr.stack)
158
+ process.exit(1)
159
+ }
144
160
 
145
161
  console.log(`[Worker ${workerIndex}] Loading tests...`)
146
162
  codecept.loadTests()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "4.0.2-beta.10",
3
+ "version": "4.0.2-beta.12",
4
4
  "type": "module",
5
5
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
6
6
  "keywords": [