Commit graph

19 commits

Author SHA1 Message Date
Paul Gascou-Vaillancourt
911701ae47 Extract discussion notes into new component
- Moved discussion notes out of `NoteableDiscussion` component into a
new `DiscussionNotes` component
- Wrote Jest tests for the new `DiscussionNotes` component
- Updated Jest config for emojis fixtures
- Updated Karma tests `NoteableDiscussion` to match its new structure
- Convert `DiffDiscussions` tests to use Vue test utils
2019-05-01 10:04:07 +00:00
Winnie Hellmann
7b4756162a Add ee_else_ce to Jest config 2019-04-05 11:14:22 +02:00
Winnie Hellmann
63f6fcd0b7 Set gon.ee in Jest 2019-03-28 18:17:10 +01:00
Winnie Hellmann
5a2d7bf245 Ignore Jest config from ESLint 2019-03-28 18:14:47 +01:00
Winnie Hellmann
fbe1f8b4cb Provide custom Jest environment with mocked console 2019-03-26 20:49:05 +01:00
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)