Skip to content

Commit 6c41571

Browse files
committed
fixed karma test
* exclude the dummy demo/*.ts files for compile
1 parent 7c25469 commit 6c41571

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

karma.conf.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ module.exports = function(config) {
1515
'jquery-ui': './src/jq/jquery-ui.js',
1616
}
1717
}
18-
}
18+
},
19+
exclude: ["demo"] // ignore dummy demo .ts files
1920
},
2021

2122
// base path that will be used to resolve all patterns (eg. files, exclude)
@@ -34,17 +35,17 @@ module.exports = function(config) {
3435
// BUT list of files to exclude
3536
exclude: [
3637
// used for webpack h5/jq/static .js
37-
"src/gridstack-h5.ts",
38-
"src/gridstack-jq.ts",
39-
"src/gridstack-static.ts",
38+
'src/gridstack-h5.ts',
39+
'src/gridstack-jq.ts',
40+
'src/gridstack-static.ts',
4041
'src/jq/*', // use h5 version for unit testing
4142
// 'src/h5/*', // use jq version for unit testing
4243
],
4344

4445
// preprocess matching files before serving them to the browser
4546
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
4647
preprocessors: {
47-
"**/*.ts": ['karma-typescript']
48+
'**/*.ts': ['karma-typescript']
4849
},
4950

5051
// test results reporter to use

0 commit comments

Comments
 (0)