Browse Source
test(timeout): use jest.setTimeout to set timeout
renovate/lint-staged-8.x
Tom Kirkpatrick
6 years ago
No known key found for this signature in database
GPG Key ID: 72203A8EC5967EA8
5 changed files with
4 additions and
5 deletions
-
test/e2e/e2e.spec.js
-
test/unit/__helpers__/intl-enzyme-test-helper.js
-
test/unit/components/Form/Pay.spec.js
-
test/unit/components/Form/Request.spec.js
-
test/unit/components/LoadingBolt.spec.js
|
|
@ -2,10 +2,9 @@ import { Application } from 'spectron' |
|
|
|
import electronPath from 'electron' |
|
|
|
import path from 'path' |
|
|
|
|
|
|
|
jest.setTimeout(10000) |
|
|
|
jest.unmock('electron') |
|
|
|
|
|
|
|
jasmine.DEFAULT_TIMEOUT_INTERVAL = 15000 |
|
|
|
|
|
|
|
describe('main window', function spec() { |
|
|
|
beforeEach(() => { |
|
|
|
this.app = new Application({ |
|
|
|
|
|
@ -4,7 +4,7 @@ import Adapter from 'enzyme-adapter-react-16' |
|
|
|
|
|
|
|
import Pay from 'components/Form/Pay' |
|
|
|
|
|
|
|
import { mountWithIntl } from '../../__helpers__/intl-enzyme-test-helper.js' |
|
|
|
import { mountWithIntl } from '../../__helpers__/intl-enzyme-test-helper' |
|
|
|
|
|
|
|
configure({ adapter: new Adapter() }) |
|
|
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ import Adapter from 'enzyme-adapter-react-16' |
|
|
|
|
|
|
|
import Request from 'components/Form/Request' |
|
|
|
|
|
|
|
import { mountWithIntl } from '../../__helpers__/intl-enzyme-test-helper.js' |
|
|
|
import { mountWithIntl } from '../../__helpers__/intl-enzyme-test-helper' |
|
|
|
|
|
|
|
configure({ adapter: new Adapter() }) |
|
|
|
|
|
|
|
|
|
@ -6,7 +6,7 @@ import Isvg from 'react-inlinesvg' |
|
|
|
import LoadingBolt from 'components/LoadingBolt' |
|
|
|
import cloudboltIcon from 'icons/cloudbolt.svg' |
|
|
|
|
|
|
|
import { mountWithIntl } from '../__helpers__/intl-enzyme-test-helper.js' |
|
|
|
import { mountWithIntl } from '../__helpers__/intl-enzyme-test-helper' |
|
|
|
|
|
|
|
configure({ adapter: new Adapter() }) |
|
|
|
|
|
|
|