Skip to content

Commit 68e7d6c

Browse files
author
DavertMik
committed
fixed interface test for CI mode
1 parent 9904604 commit 68e7d6c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/runner/interface_test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,12 @@ describe('CodeceptJS Interface', () => {
156156
expect(output).toContain('OK')
157157
expect(output).toContain('0 passed')
158158
expect(output).toContain('2 skipped')
159-
expect(err).toBeFalsy()
159+
if (process.env.CI) {
160+
// we notify that no tests were executed, which is not expected on CI
161+
expect(err).toBeTruthy()
162+
} else {
163+
expect(err).toBeFalsy()
164+
}
160165
done()
161166
})
162167
})

0 commit comments

Comments
 (0)