mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-09 01:19:20 -05:00
use electron-mocha to run tests in electron
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
"console-table-printer": "1.0.0-beta12",
|
||||
"cors": "2.8.5",
|
||||
"coveralls": "2.13.3",
|
||||
"electron-mocha": "^8.0.2",
|
||||
"electron-osx-sign": "0.4.11",
|
||||
"eol": "0.9.1",
|
||||
"eventsource": "1.0.7",
|
||||
|
||||
@@ -65,7 +65,7 @@ if (options['inspect-brk']) {
|
||||
}
|
||||
|
||||
commandAndArguments.args.push(
|
||||
'node_modules/.bin/_mocha',
|
||||
'node_modules/.bin/electron-mocha',
|
||||
run
|
||||
)
|
||||
|
||||
@@ -80,8 +80,8 @@ commandAndArguments.args.push(
|
||||
'--timeout',
|
||||
options['inspect-brk'] ? '40000000' : '10000',
|
||||
'--recursive',
|
||||
'--compilers',
|
||||
'ts:@packages/ts/register,coffee:@packages/coffee/register',
|
||||
'--require-main',
|
||||
'@packages/ts/register,@packages/coffee/register',
|
||||
'--reporter',
|
||||
'mocha-multi-reporters',
|
||||
'--reporter-options',
|
||||
|
||||
@@ -5,6 +5,9 @@ _ = require("lodash")
|
||||
parent = require("#{root}timers/parent")
|
||||
|
||||
describe "timers/parent", ->
|
||||
it "tests should be running in electron", ->
|
||||
expect(process.versions.electron).to.not.be.undefined
|
||||
|
||||
context ".fix", ->
|
||||
beforeEach ->
|
||||
parent.restore()
|
||||
|
||||
Reference in New Issue
Block a user