Skip to content

Commit 51e726e

Browse files
committed
fix: retries is not a function in shell command
1 parent 5cad89b commit 51e726e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/command/interactive.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,23 @@ module.exports = async function (path, options) {
2323

2424
if (options.verbose) output.level(3)
2525

26+
let addGlobalRetries
27+
28+
if (config.retry) {
29+
addGlobalRetries = function retries() {}
30+
}
31+
2632
output.print('Starting interactive shell for current suite...')
2733
recorder.start()
2834
event.emit(event.suite.before, {
2935
fullTitle: () => 'Interactive Shell',
3036
tests: [],
37+
retries: addGlobalRetries,
3138
})
3239
event.emit(event.test.before, {
3340
title: '',
3441
artifacts: {},
42+
retries: addGlobalRetries,
3543
})
3644

3745
const enabledHelpers = Container.helpers()

0 commit comments

Comments
 (0)