Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alexey Sokolov
ng-ebi-authorization
Commits
b35abed3
Commit
b35abed3
authored
Feb 13, 2018
by
Eduardo Sanz García
Browse files
test: fix and simplify test configurations
parent
f626aba1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
9 deletions
+4
-9
karma.conf.js
karma.conf.js
+1
-1
karma_chrome.conf.js
karma_chrome.conf.js
+0
-5
package.json
package.json
+2
-2
src/polyfills.ts
src/polyfills.ts
+1
-1
No files found.
karma.conf.js
View file @
b35abed3
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
// Configuration
used in
test
:sr
// Configuration
for
test
module
.
exports
=
function
(
config
)
{
config
.
set
({
...
...
karma_chrome.conf.js
View file @
b35abed3
...
...
@@ -11,16 +11,11 @@ module.exports = function (config) {
require
(
'
karma-jasmine
'
),
require
(
'
karma-jasmine-html-reporter
'
),
require
(
'
karma-chrome-launcher
'
),
require
(
'
karma-coverage-istanbul-reporter
'
),
require
(
'
@angular/cli/plugins/karma
'
)
],
client
:{
clearContext
:
false
// leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter
:
{
reports
:
[
'
html
'
,
'
lcovonly
'
],
fixWebpackSourcePaths
:
true
},
angularCli
:
{
environment
:
'
prod
'
},
...
...
package.json
View file @
b35abed3
...
...
@@ -7,8 +7,8 @@
"start"
:
"ng serve --aot"
,
"build"
:
"ng build --prod --aot"
,
"test"
:
"ng test --config=karma_chrome.conf.js"
,
"test:sr"
:
"ng test --progress=false"
,
"test:sr:chromium"
:
"ng test --progress=false --config=karma_chromium.conf.js"
,
"test:sr"
:
"ng test
--code-coverage=true
--progress=false"
,
"test:sr:chromium"
:
"ng test
--code-coverage=true
--progress=false --config=karma_chromium.conf.js"
,
"lint"
:
"ng lint --type-check"
,
"e2e"
:
"ng e2e"
,
"packagr"
:
"ng-packagr -p ng-package.json"
...
...
src/polyfills.ts
View file @
b35abed3
...
...
@@ -43,7 +43,7 @@
/** Evergreen browsers require these. **/
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
//
import 'core-js/es7/reflect';
import
'
core-js/es7/reflect
'
;
/**
...
...
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