@@ -30,7 +30,8 @@ module.exports = function(config) {
30
30
'karma-ie-launcher' ,
31
31
'karma-safarinative-launcher' ,
32
32
'karma-detect-browsers' ,
33
- 'karma-rollup-preprocessor'
33
+ 'karma-rollup-preprocessor' ,
34
+ 'karma-coverage-istanbul-reporter'
34
35
] ,
35
36
36
37
browserNoActivityTimeout : 60000 , //default 10000
@@ -47,6 +48,17 @@ module.exports = function(config) {
47
48
}
48
49
} ,
49
50
51
+ coverageIstanbulReporter : {
52
+ reports : [ 'html' , 'lcovonly' ] ,
53
+ dir : '.coverage' ,
54
+ combineBrowserReports : true ,
55
+ skipFilesWithNoCoverage : true ,
56
+ 'report-config' : {
57
+ html : { subdir : 'html' } ,
58
+ lcovonly : { subdir : 'lcov' } ,
59
+ } ,
60
+ } ,
61
+
50
62
customLaunchers : {
51
63
Safari : {
52
64
base : 'SafariNative' ,
@@ -83,11 +95,12 @@ module.exports = function(config) {
83
95
include : 'node_modules/**' ,
84
96
exclude : 'node_modules/@open-wc/**' ,
85
97
} ) ,
98
+ require ( '@rollup/plugin-node-resolve' ) ( ) ,
86
99
require ( 'rollup-plugin-babel' ) ( {
87
100
babelrc : false ,
101
+ include : [ 'node_modules/@open-wc/**' , 'test/**' ] ,
88
102
...babelrc ,
89
- plugins : [
90
- ] ,
103
+ plugins : [ 'babel-plugin-transform-async-to-promises' ]
91
104
} ) ,
92
105
] ,
93
106
output : {
@@ -101,11 +114,12 @@ module.exports = function(config) {
101
114
base : 'rollup' ,
102
115
options : {
103
116
plugins : [
117
+ require ( '@rollup/plugin-node-resolve' ) ( ) ,
104
118
require ( 'rollup-plugin-babel' ) ( {
105
119
babelrc : false ,
106
120
...babelrc ,
107
121
plugins : [ coverage && 'babel-plugin-istanbul' ] . filter ( Boolean ) ,
108
- } )
122
+ } ) ,
109
123
] ,
110
124
output : {
111
125
format : 'iife' ,
0 commit comments