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
92da6112
Commit
92da6112
authored
Dec 09, 2019
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include ee/ in Jest coverage report
parent
6c1f03fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
jest.config.js
jest.config.js
+5
-1
No files found.
jest.config.js
View file @
92da6112
...
...
@@ -40,6 +40,8 @@ const moduleNameMapper = {
'
^spec/test_constants$
'
:
'
<rootDir>/spec/frontend/helpers/test_constants
'
,
};
const
collectCoverageFrom
=
[
'
<rootDir>/app/assets/javascripts/**/*.{js,vue}
'
];
if
(
IS_EE
)
{
const
rootDirEE
=
'
<rootDir>/ee/app/assets/javascripts$1
'
;
Object
.
assign
(
moduleNameMapper
,
{
...
...
@@ -47,6 +49,8 @@ if (IS_EE) {
'
^ee_component(/.*)$
'
:
rootDirEE
,
'
^ee_else_ce(/.*)$
'
:
rootDirEE
,
});
collectCoverageFrom
.
push
(
rootDirEE
.
replace
(
'
$1
'
,
'
/**/*.{js,vue}
'
));
}
// eslint-disable-next-line import/no-commonjs
...
...
@@ -54,7 +58,7 @@ module.exports = {
testMatch
,
moduleFileExtensions
:
[
'
js
'
,
'
json
'
,
'
vue
'
],
moduleNameMapper
,
collectCoverageFrom
:
[
'
<rootDir>/app/assets/javascripts/**/*.{js,vue}
'
]
,
collectCoverageFrom
,
coverageDirectory
:
'
<rootDir>/coverage-frontend/
'
,
coverageReporters
:
[
'
json
'
,
'
lcov
'
,
'
text-summary
'
,
'
clover
'
],
cacheDirectory
:
'
<rootDir>/tmp/cache/jest
'
,
...
...
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