1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

fix test coverage

This commit is contained in:
lana-k
2020-12-28 12:42:57 +01:00
parent 08e4f5333d
commit bbcb553fdc
2 changed files with 26 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
files: [
"tests/unit/*.spec.js",
"./karma.files.js",
{ pattern: 'node_modules/sql.js/dist/sql-wasm.wasm',
watched: false,
included: false,
@@ -39,7 +39,7 @@ module.exports = function(config) {
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
"tests/unit/*.spec.js": ["webpack"]
"./karma.files.js": ["webpack"]
},
// test results reporter to use
@@ -118,7 +118,14 @@ module.exports = function(config) {
use: [
{
loader: "babel-loader"
},
}
]
},
{
test: /\.js$/,
include: /src/,
exclude: /(node_modules|bower_components|\.spec\.js$|\/file)/,
use: [
{
loader: "istanbul-instrumenter-loader",
options: {