Commit graph

14 commits

Author SHA1 Message Date
Winnie Hellmann
939140c33e Mock timers in Jest 2019-03-21 18:04:33 +01:00
Winnie Hellmann
55f76ce8f6 Revert "Merge branch 'winh-dequarantine-labels-autocomplete' into 'master'"
This reverts merge request !25542
2019-03-05 11:02:00 +00:00
Lukas Eipert
c151cebaaa
Upgrade jest and related dependencies
This removes other outdated babel@6 dependencies as well.

Unfortunately the newer version of vue-jest has a dependency of an older
version of ts-jest. In order to satisfy the peerDependency from ts-jest,
we are forcing the version@24. The only "breaking" change from ts-jest
23->24 is that it requires a newer version of jest. This might be
obsolete soon, as vue-jest plans on switching to babel eventually.
2019-02-28 12:36:29 +01:00
Winnie Hellmann
fb23a411d1 Add fixtures path to Jest config 2019-02-27 09:08:41 +01:00
Phil Hughes
224417e2b4 Added GraphQL Jest transform 2019-02-26 12:26:15 +00:00
Kushal Pandya
a40bb1e8ec Merge branch 'winh-jest-gfm_auto_complete_spec' into 'master'
Move gfm_auto_complete_spec.js to Jest

See merge request gitlab-org/gitlab-ce!25463
2019-02-22 10:06:06 +00:00
Phil Hughes
f6483cc3b8 Merge branch 'winh-jest-config' into 'master'
Setup Jest for EE (CE backport)

See merge request gitlab-org/gitlab-ce!25468
2019-02-22 08:36:20 +00:00
Winnie Hellmann
db583a3387 Setup Jest for EE
(cherry picked from commit e760abdb081e56d345e58c5a11a38f579b9fc43e)
2019-02-21 15:49:48 +01:00
Winnie Hellmann
948df0e383 Add vendor/ to Jest aliases 2019-02-21 14:25:39 +01:00
Winnie Hellmann
dc9a67652d Transpile @gitlab/ui for Jest 2019-02-21 11:02:32 +01:00
Winnie Hellmann
4b3573f2e9 Setup Jest for Vue 2018-12-11 15:03:59 +01:00
Winnie Hellmann
2c1d434331 Automatically restore all Jest mocks after each test
see https://jestjs.io/docs/en/configuration.html#restoremocks-boolean
2018-12-11 13:06:19 +01:00
Winnie Hellmann
fac4d54f3d Fail long running tests 2018-12-11 13:06:19 +01:00
Winnie Hellmann
ca3603de56 Move jest.config.js to root directory 2018-12-11 13:06:19 +01:00
Renamed from config/jest.config.js (Browse further)