Skip to content

Commit ec05284

Browse files
committed
[chore] modify karma.conf.js. Ignore scroll / touch related file because of test difficultly.
1 parent 49f01ae commit ec05284

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

karma.conf.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module.exports = function(config) {
130130
{
131131
test: /\.(js)$/,
132132
loader: 'istanbul-instrumenter-loader',
133-
exclude: /node_modules/,
133+
exclude: [/node_modules/, /src\/utils/],
134134
include: /src|packages/,
135135
enforce: 'post',
136136
options: {
@@ -151,6 +151,7 @@ module.exports = function(config) {
151151
},
152152
{
153153
test: /\.vue$/,
154+
exclude: [/Scroller\.vue/, /Swipe\.vue/],
154155
loaders: [{
155156
loader: 'vue-loader',
156157
options: {
@@ -161,6 +162,16 @@ module.exports = function(config) {
161162
}
162163
}]
163164
},
165+
{
166+
test: /\.vue$/,
167+
include: [/Scroller\.vue/, /Swipe\.vue/],
168+
loaders: [{
169+
loader: 'vue-loader',
170+
options: {
171+
postcss: [autoprefixer({browsers: ['> 1%', 'ie >= 9', 'iOS >= 6', 'Android >= 2.1']}), px2rem({remUnit: 75})],
172+
}
173+
}]
174+
},
164175
{
165176
test: /\.(scss|sass)$/,
166177
loaders: ['style-loader', 'css-loader', 'sass-loader']

0 commit comments

Comments
 (0)