Skip to content

Commit 1e98f42

Browse files
authored
Merge pull request #15 from linux-nerd/feature/graph
Workaround for correct coverage percentage
2 parents eca4458 + 6b4cbb3 commit 1e98f42

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = function (config) {
2020
// list of files / patterns to load in the browser
2121
files: [
2222
'node_modules/babel-polyfill/dist/polyfill.js',
23-
'src/**/*.spec.js'
23+
'src/test-index.js'
2424
],
2525

2626
webpack: webpackConfig,
@@ -34,7 +34,7 @@ module.exports = function (config) {
3434
// preprocess matching files before serving them to the browser
3535
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
3636
preprocessors: {
37-
'src/**/*.spec.js': ['webpack'],
37+
'src/test-index.spec.js': ['webpack'],
3838
'src/**/*.js': ['webpack', 'coverage']
3939
},
4040

src/test-index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require('./binary-search-tree/binary-search-tree.spec');
2+
require('./graph/graph.spec');
3+
require('./graph/adj-list.spec');

0 commit comments

Comments
 (0)