Browse Source

test(timeout): use jest.setTimeout to set timeout

renovate/lint-staged-8.x
Tom Kirkpatrick 6 years ago
parent
commit
5c93cee6d2
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 3
      test/e2e/e2e.spec.js
  2. 0
      test/unit/__helpers__/intl-enzyme-test-helper.js
  3. 2
      test/unit/components/Form/Pay.spec.js
  4. 2
      test/unit/components/Form/Request.spec.js
  5. 2
      test/unit/components/LoadingBolt.spec.js

3
test/e2e/e2e.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({

0
test/unit/__helpers__/intl-enzyme-test-helper.js.js → test/unit/__helpers__/intl-enzyme-test-helper.js

2
test/unit/components/Form/Pay.spec.js

@ -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() })

2
test/unit/components/Form/Request.spec.js

@ -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() })

2
test/unit/components/LoadingBolt.spec.js

@ -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() })

Loading…
Cancel
Save