Skip to content

Commit

Permalink
fixed interface test for CI mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Jan 7, 2025
1 parent 9904604 commit 68e7d6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/runner/interface_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ describe('CodeceptJS Interface', () => {
expect(output).toContain('OK')
expect(output).toContain('0 passed')
expect(output).toContain('2 skipped')
expect(err).toBeFalsy()
if (process.env.CI) {
// we notify that no tests were executed, which is not expected on CI
expect(err).toBeTruthy()
} else {
expect(err).toBeFalsy()
}
done()
})
})
Expand Down

0 comments on commit 68e7d6c

Please sign in to comment.