Commit graph

17 commits

Author SHA1 Message Date
Mike Greiling
2e32e39350 Merge branch 'fe-jestify-specs-starting-with-a-1' into 'master'
Jestify some specs that start with "A"

See merge request gitlab-org/gitlab-ce!28727
2019-06-04 21:20:31 +00:00
Paul Slaughter
a9850b25c3
Jestify autosave spec and add localStorage helper
The helper was needed because `jest.spyOn` would not
work on this special window object property. The only way
we could successfully spy on `localStorage` was with this helper.
2019-06-04 12:14:50 -05:00
Nathan Friend
bee3c7e847 Comply with no-implicit-coercion rule (CE)
This commit is the result of running `yarn eslint --fix` after enabling
the `no-implicit-coercion` ESLint rule.  This rule has been added to
our ESLint config here:

https://gitlab.com/gitlab-org/gitlab-eslint-config/merge_requests/14
2019-06-03 22:51:02 +00:00
Winnie Hellmann
aea013eab9 Move NoteApp tests to Jest 2019-06-03 14:36:34 +00:00
Mike Greiling
96725938c0 Merge branch 'fe-rename-vue-component-helper-ce' into 'master'
[CE Port] Rename vue_component_helper to text_helper

See merge request gitlab-org/gitlab-ce!28358
2019-05-20 20:06:34 +00:00
Paul Slaughter
878e69299b
Rename vue_component_helper to text_helper
**Why?**
This file only contains a few text based helper functions.
It has nothing to do with Vue or Vue components.
2019-05-16 06:40:18 -05:00
Paul Slaughter
ad7d62e1ac
Use process timer for jest timeout testing 2019-05-08 09:50:58 -05:00
Winnie Hellmann
fbac16b2de Load EE fixtures from ee/ directory in Jest
(cherry picked from commit 2917a28a885922a03f2026ddbb2680bc2b6e5d50)
2019-05-02 23:11:18 +02:00
Adriel Santiago
239aa51438 Restore multiple series support
Corrects an issue whereby queries which return multiple series results
were not rendering as multiple data series on the metrics dashboard
2019-04-05 09:14:13 +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
9c2237569d Add helpers for HTML fixtures to Jest 2019-03-29 07:33:30 +01:00
Winnie Hellmann
2e7486681a Copy missing helpers from Karma to Jest
Copy missing helpers from Karma to Jest
2019-03-28 20:07:40 +01:00
Winnie Hellmann
f9f5ebc2ac Add jest-environment-jsdom and jest-util dependencies 2019-03-26 20:48:34 +01:00
Winnie Hellmann
6d330015df Copy vue_mount_component_helper.js to Jest 2019-03-23 17:53:42 +01:00
Winnie Hellmann
af3307f7b4 Add getJSONFixture() helper to Jest 2019-03-11 14:55:18 +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
5c4cf3b3a3 Move emoji_menu_spec.js to Jest 2018-12-11 13:06:19 +01:00