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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
9062b9a5
Commit
9062b9a5
authored
Apr 25, 2019
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove babel environment for Jest
parent
8a07d5e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
babel.config.js
babel.config.js
+3
-2
package.json
package.json
+1
-2
No files found.
babel.config.js
View file @
9062b9a5
...
...
@@ -38,8 +38,9 @@ if (BABEL_ENV === 'karma' || BABEL_ENV === 'coverage') {
plugins
.
push
(
'
babel-plugin-rewire
'
);
}
// Jest is running in node environment
if
(
BABEL_ENV
===
'
jest
'
)
{
// Jest is running in node environment, so we need additional plugins
const
isJest
=
!!
process
.
env
.
JEST_WORKER_ID
;
if
(
isJest
)
{
plugins
.
push
(
'
@babel/plugin-transform-modules-commonjs
'
);
/*
without the following, babel-plugin-istanbul throws an error:
...
...
package.json
View file @
9062b9a5
...
...
@@ -6,8 +6,7 @@
"eslint"
:
"eslint --max-warnings 0 --report-unused-disable-directives --ext .js,.vue ."
,
"eslint-fix"
:
"eslint --max-warnings 0 --report-unused-disable-directives --ext .js,.vue --fix ."
,
"eslint-report"
:
"eslint --max-warnings 0 --ext .js,.vue --format html --output-file ./eslint-report.html --no-inline-config ."
,
"jest"
:
"BABEL_ENV=jest jest"
,
"jest-debug"
:
"BABEL_ENV=jest node --inspect-brk node_modules/.bin/jest --runInBand"
,
"jest-debug"
:
"node --inspect-brk node_modules/.bin/jest --runInBand"
,
"jsdoc"
:
"jsdoc -c config/jsdocs.config.js"
,
"karma"
:
"BABEL_ENV=${BABEL_ENV:=karma} karma start --single-run true config/karma.config.js"
,
"karma-coverage"
:
"BABEL_ENV=coverage karma start --single-run true config/karma.config.js"
,
...
...
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