Commit Graph

22 Commits

Author SHA1 Message Date
Natalia Tepluhina 3283e4397f Revert "Fixed comparing value to undefined"
This reverts commit d754beb74fbc06a2c744e15be4aa2831d8cef1c0.
2019-08-06 12:02:23 +00:00
Tristan Read 97b325a4a2 Add ability to embed metrics
See https://gitlab.com/gitlab-org/gitlab-ce/issues/30423
2019-07-22 12:01:42 +00:00
Martin Hanzel eb45cb8c99 Mockify jquery and axios packages
Moved the block that fails tests on unmocked axios requests from
test_setup to its own mock, and added a jQuery mock that fails
tests if they use unmocked $.ajax().
2019-07-17 17:47:39 +00:00
Paul Slaughter 85f65f5f71
Set logModifiedComponents in jest and karma
Also:
- stub MutationObserver in Jest
2019-06-28 18:47:00 +02:00
Paul Slaughter ee6fb858fd
Add jQuery to jest test_setup 2019-06-26 13:48:01 -05:00
Winnie Hellmann 7100c6b581 Increase Jest timeout on CI to 5 seconds 2019-06-06 16:52:20 +00:00
Winnie Hellmann 9012d309f1 Increase Jest timeout to 500ms 2019-05-17 10:08:20 +00:00
Winnie Hellmann 1eb3eca313 Fix loadJSONFixtures wrapper in Jest 2019-05-15 15:31:52 +02:00
Fatih Acet 9269ac1b69 Merge branch 'winh-rejected-jest-promises' into 'master'
Fail Jest tests for unhandled Promise rejections

Closes #56053

See merge request gitlab-org/gitlab-ce!26424
2019-04-01 20:55:17 +00:00
Winnie Hellmann e3465a5dde Add jQuery matchers to Jest 2019-04-01 18:55:57 +00:00
Clement Ho b4cc639f80 Merge branch 'winh-jest-html-fixtures' into 'master'
Add helpers for HTML fixtures to Jest

Closes #57998

See merge request gitlab-org/gitlab-ce!26739
2019-03-29 16:59:16 +00:00
Winnie Hellmann 0e9c092d00 Fail correct test for Promise 2019-03-29 11:53:17 +01:00
Winnie Hellmann 0b68b17c3b Fail for unhandled Promise rejections in Jest 2019-03-29 11:53:17 +01:00
Winnie Hellmann b0e26ed5ce Add Karma-style fixture helpers to Jest 2019-03-29 07:33:30 +01:00
Winnie Hellmann 346f7027e2 Add workaround for innerText in Jest 2019-03-29 07:33:30 +01:00
Winnie Hellmann 9d4061efdf Disable Vue tips when running Jest 2019-03-28 14:17:52 +01:00
Winnie Hellmann d1251b42a0 Wait for pending timers in Jest 2019-03-21 18:05:21 +01:00
Winnie Hellmann f066683071
Add setTestTimeout for Jest tests
Allows contributors to set the timeout
for individual jest tests.
2019-03-08 16:21:10 +00:00
Winnie Hellmann 8d74aab428 Load i18n Vue plugin for Jest tests 2019-02-21 11:02:31 +01:00
Winnie Hellmann 13bb3483d8 Fail tests for unmocked axios requests 2019-02-21 09:39:59 +01:00
Winnie Hellmann 6356862630 Set timeout for Jest to 300ms 2018-12-11 13:06:19 +01:00
Winnie Hellmann fac4d54f3d Fail long running tests 2018-12-11 13:06:19 +01:00