Tom Kirkpatrick
369be780a9
ci(jest): increase timeouts
Tests sometimes run very slowly on Appveyor and can timeout before they
finish. Increase jest and spectron timeouts from their defaults.
6 years ago
Tom Kirkpatrick
11ab3999b7
ci(jest): set maxWorkers to 2
Jest process doesn’t quit after last test completes. This can cause our
tests to fail sometimes, particularly on on Appveyor.
As an attempt to get past this previously we had set `--forceExit` in
our jest cli options, but this doesn't always work either.
Further research suggests that setting ``--maxWorkers=2` could resolve
the issue.
See
- https://github.com/facebook/jest/issues/1456#issuecomment-424356243
- https://github.com/facebook/jest/blob/master/docs/Troubleshooting.md
Fix #774 , Fix #773
6 years ago
Tom Kirkpatrick
1081db81c4
test(e2e): combine e2e test setup/teardown steps
There is currently a bug with Spectron which is causing random test
failures due to `app.quit` not working as it should.
Combine the e2e tests so that they use a single setup/teardown step
which will reduce the frequency of random test failures.
6 years ago
Tom Kirkpatrick
5c93cee6d2
test(timeout): use jest.setTimeout to set timeout
6 years ago
Tom Kirkpatrick
7a5f360e6d
test(e2e): ensure tests are self contained
Ensure that each of our e2e tests carries out its own full setup and
teardown processes so that they can be run in isolation.
6 years ago
Tom Kirkpatrick
e786958b55
test(electron): simplify electron mocks
6 years ago
Tom Kirkpatrick
0846bcb772
style(lint): lint and format all code
7 years ago
Ben Woosley
06595b1ea4
enhance(test): Drop pessimistic printing of logs that shouldn't be there
This test code is unnecessary in the common case and can be revived if the test
fails.
7 years ago
Ben Woosley
acbf786c0a
fix(lints): Manually fix some trivial lints
7 years ago
Ben Woosley
4125283587
enhance(lints): Enable currenly disabled lints
7 years ago
Ben Woosley
2e5ca3da68
fix(lints): Run eslint --fix over the currently disabled lints
7 years ago
Ben Woosley
1578fc2631
fix(e2e-tests): Drop irrelevant e2e tests
So that e2e runs green
7 years ago
Jack Mallers
88c577d248
fix(lint): fix all lint errors/warnings
8 years ago
Jack Mallers
393a34c7e8
fix(lint): fix more linting errors
8 years ago
Jack Mallers
85485bb5eb
first commit
8 years ago