|
@@ -96,21 +96,8 @@
|
|
|
const runner = mocha.run(() => {
|
|
|
// Ensure the callback is called after runner is defined
|
|
|
setTimeout(() => {
|
|
|
- if (isCi && runner.hasOnly) {
|
|
|
- try {
|
|
|
- throw new Error('A spec contains a call to it.only or describe.only and should be reverted.')
|
|
|
- } catch (error) {
|
|
|
- console.error(error.stack || error)
|
|
|
- }
|
|
|
- ipcRenderer.send('process.exit', 1)
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
Mocha.utils.highlightTags('code')
|
|
|
-
|
|
|
- if (isCi) {
|
|
|
- ipcRenderer.send('process.exit', runner.failures)
|
|
|
- }
|
|
|
+ if (isCi) ipcRenderer.send('process.exit', runner.failures)
|
|
|
}, 0)
|
|
|
})
|
|
|
})
|