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

add tests in github actions

This commit is contained in:
lana-k
2021-01-13 21:51:04 +01:00
parent 3168c77c17
commit 6612f4444b
10 changed files with 191 additions and 154 deletions

View File

@@ -1,16 +1,16 @@
import Vue from "vue";
import Vue from 'vue'
Vue.config.productionTip = false;
Vue.config.productionTip = false
// require all test files (files that ends with .spec.js)
const testsContext = require.context("./tests/unit", true, /\.spec.js$/);
const testsContext = require.context('./tests/unit', true, /\.spec.js$/)
// Read more about why we need to call testContext:
// https://www.npmjs.com/package/require-context#context-api
testsContext.keys().forEach(testsContext);
testsContext.keys().forEach(testsContext)
// require all src files except main.js for coverage.
// you can also change this to match only the subset of files that
// you want coverage for.
const srcContext = require.context("./src", true, /^\.\/(?!main(\.js)?$)/);
srcContext.keys().forEach(srcContext);
const srcContext = require.context('./src', true, /^\.\/(?!main(\.js)?$)/)
srcContext.keys().forEach(srcContext)