codeceptjs 4.0.1-beta.28 → 4.0.1-beta.29
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/step/record.js +2 -3
- package/package.json +1 -1
package/lib/step/record.js
CHANGED
|
@@ -6,7 +6,6 @@ import store from '../store.js'
|
|
|
6
6
|
import { TIMEOUT_ORDER } from '../timeout.js'
|
|
7
7
|
import retryStep from './retry.js'
|
|
8
8
|
import { fixErrorStack } from '../utils/typescript.js'
|
|
9
|
-
import Container from '../container.js'
|
|
10
9
|
function recordStep(step, args) {
|
|
11
10
|
step.status = 'queued'
|
|
12
11
|
|
|
@@ -63,8 +62,8 @@ function recordStep(step, args) {
|
|
|
63
62
|
step.status = 'failed'
|
|
64
63
|
step.endTime = +Date.now()
|
|
65
64
|
|
|
66
|
-
// Fix error stack to point to original .ts files
|
|
67
|
-
const fileMapping =
|
|
65
|
+
// Fix error stack to point to original .ts files (lazy import to avoid circular dependency)
|
|
66
|
+
const fileMapping = global.container?.tsFileMapping?.()
|
|
68
67
|
if (fileMapping) {
|
|
69
68
|
fixErrorStack(err, fileMapping)
|
|
70
69
|
}
|