Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d43c09d7
Commit
d43c09d7
authored
Sep 10, 2019
by
Paul Slaughter
Committed by
Evan Read
Sep 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Add when to use Jest section in frontend_testing
parent
7eda144e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
doc/development/testing_guide/frontend_testing.md
doc/development/testing_guide/frontend_testing.md
+12
-3
No files found.
doc/development/testing_guide/frontend_testing.md
View file @
d43c09d7
...
@@ -20,9 +20,18 @@ We have started to migrate frontend tests to the [Jest](https://jestjs.io) testi
...
@@ -20,9 +20,18 @@ We have started to migrate frontend tests to the [Jest](https://jestjs.io) testi
Jest tests can be found in
`/spec/frontend`
and
`/ee/spec/frontend`
in EE.
Jest tests can be found in
`/spec/frontend`
and
`/ee/spec/frontend`
in EE.
It is not yet a requirement to use Jest. You can view the
### When should I use Jest over Karma?
[
epic
](
https://gitlab.com/groups/gitlab-org/-/epics/873
)
of issues
we need to solve before being able to use Jest for all our needs.
If you need to update an existing Karma test file (found in
`spec/javascripts`
), you do not
need to migrate the whole spec to Jest. Simply updating the Karma spec to test your change
is fine. It is probably more appropriate to migrate to Jest in a separate merge request.
If you need to create a new test file, we strongly recommend creating one in Jest. This will
help support our migration and we think you'll love using Jest.
As always, please use discretion. Jest solves a lot of issues we experienced in Karma and
provides a better developer experience, however there are potentially unexpected issues
which could arise (especially with testing against browser specific features).
### Differences to Karma
### Differences to Karma
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment