codeceptjs 4.0.1-beta.30 → 4.0.1-beta.31

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.
Files changed (2) hide show
  1. package/lib/container.js +4 -2
  2. 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 new Error(`Could not include object I: ${e.message}`)
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
- throw new Error(`Could not include object ${supportObjectName} from module '${modulePath}'\n${err.message}\n${err.stack}`)
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "4.0.1-beta.30",
3
+ "version": "4.0.1-beta.31",
4
4
  "type": "module",
5
5
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
6
6
  "keywords": [