codeceptjs 3.3.2 β†’ 3.3.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 3.3.3
2
+
3
+ * Fixed `DataCloneError: () => could not be cloned` when running data tests in run-workers
4
+ * πŸ‡ΊπŸ‡¦ Added #StandWithUkraine notice to CLI
5
+
6
+
1
7
  ## 3.3.2
2
8
 
3
9
  * [REST] Fixed override of headers/token in `haveRequestHeaders()` and `amBearerAuthenticated()`. See #3304 by @mirao
@@ -41,8 +47,6 @@ npx codeceptjs run test-dir/*"
41
47
  * Improving the typings in many places
42
48
  * Improving the return type of helpers for TS users (#3245) - @nlespiaucq
43
49
 
44
- πŸ‡ΊπŸ‡¦ Added #StandWithUkraine hashtag notice to CLI
45
-
46
50
  ## 3.3.0
47
51
 
48
52
  πŸ›©οΈ Features:
package/docs/changelog.md CHANGED
@@ -7,6 +7,12 @@ layout: Section
7
7
 
8
8
  # Releases
9
9
 
10
+ ## 3.3.3
11
+
12
+ * Fixed `DataCloneError: () => could not be cloned` when running data tests in run-workers
13
+ * πŸ‡ΊπŸ‡¦ Added #StandWithUkraine notice to CLI
14
+
15
+
10
16
  ## 3.3.2
11
17
 
12
18
  * **[REST]** Fixed override of headers/token in `haveRequestHeaders()` and `amBearerAuthenticated()`. See [#3304](https://github.com/codeceptjs/CodeceptJS/issues/3304) by **[mirao](https://github.com/mirao)**
@@ -50,8 +56,6 @@ npx codeceptjs run test-dir/*"
50
56
  * Improving the typings in many places
51
57
  * Improving the return type of helpers for TS users ([#3245](https://github.com/codeceptjs/CodeceptJS/issues/3245)) - **[nlespiaucq](https://github.com/nlespiaucq)**
52
58
 
53
- πŸ‡ΊπŸ‡¦ Added #StandWithUkraine hashtag notice to CLI
54
-
55
59
  ## 3.3.0
56
60
 
57
61
  πŸ›©οΈ Features:
package/lib/cli.js CHANGED
@@ -19,7 +19,7 @@ class Cli extends Base {
19
19
  if (opts.debug) level = 2;
20
20
  if (opts.verbose) level = 3;
21
21
  output.level(level);
22
- output.print(`CodeceptJS v${require('./codecept').version()}`);
22
+ output.print(`CodeceptJS v${require('./codecept').version()} ${output.standWithUkraine()}`);
23
23
  output.print(`Using test root "${global.codecept_dir}"`);
24
24
 
25
25
  const showSteps = level >= 1;
@@ -25,7 +25,7 @@ module.exports = async function (workerCount, options) {
25
25
 
26
26
  const numberOfWorkers = parseInt(workerCount, 10);
27
27
 
28
- output.print(`CodeceptJS v${require('../codecept').version()}`);
28
+ output.print(`CodeceptJS v${require('../codecept').version()} ${output.standWithUkraine()}`);
29
29
  output.print(`Running tests in ${output.styles.bold(numberOfWorkers)} workers...`);
30
30
  output.print();
31
31
 
@@ -114,6 +114,13 @@ function initializeListeners() {
114
114
  parent.title = test.parent.title;
115
115
  }
116
116
 
117
+ if (test.opts) {
118
+ Object.keys(test.opts).forEach(k => {
119
+ if (typeof test.opts[k] === 'object') delete test.opts[k];
120
+ if (typeof test.opts[k] === 'function') delete test.opts[k];
121
+ });
122
+ }
123
+
117
124
  return {
118
125
  opts: test.opts || {},
119
126
  tags: test.tags || [],
@@ -148,6 +155,14 @@ function initializeListeners() {
148
155
  if (step.metaStep) {
149
156
  parent.title = step.metaStep.actor;
150
157
  }
158
+
159
+ if (step.opts) {
160
+ Object.keys(step.opts).forEach(k => {
161
+ if (typeof step.opts[k] === 'object') delete step.opts[k];
162
+ if (typeof step.opts[k] === 'function') delete step.opts[k];
163
+ });
164
+ }
165
+
151
166
  return {
152
167
  opts: step.opts || {},
153
168
  workerIndex,
package/lib/output.js CHANGED
@@ -26,6 +26,10 @@ module.exports = {
26
26
  /** @type {number} */
27
27
  stepShift: 0,
28
28
 
29
+ standWithUkraine() {
30
+ return `#${colors.bold.yellow('StandWith')}${colors.bold.cyan('Ukraine')}`;
31
+ },
32
+
29
33
  /**
30
34
  * Set or return current verbosity level
31
35
  * @param {number} [level]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
5
5
  "keywords": [
6
6
  "acceptance",