diff --git a/.eslintrc.js b/.eslintrc.js index cf516ef..0011c25 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -19,7 +19,7 @@ module.exports = { { files: [ '**/__tests__/*.{j,t}s?(x)', - '**/tests/unit/**/*.spec.{j,t}s?(x)' + '**/tests/**/*.spec.{j,t}s?(x)' ], env: { mocha: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4945e48..85415b6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,4 +27,4 @@ jobs: run: npm run lint - name: Run karma tests - run: npm run test:unit + run: npm run test diff --git a/karma.files.js b/karma.files.js index 1b89acd..23f5bc5 100644 --- a/karma.files.js +++ b/karma.files.js @@ -7,7 +7,7 @@ Vue.use(VModal) 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', true, /\.spec.js$/) // Read more about why we need to call testContext: // https://www.npmjs.com/package/require-context#context-api diff --git a/package.json b/package.json index 4497e6d..5a5a1d8 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "serve": "vue-cli-service serve", "build": "NODE_OPTIONS=--max_old_space_size=4096 vue-cli-service build", - "test:unit": "vue-cli-service karma", + "test": "vue-cli-service karma", "lint": "vue-cli-service lint" }, "dependencies": { diff --git a/src/components/CheckBox.vue b/src/components/CheckBox.vue index eedfc2e..a301c28 100644 --- a/src/components/CheckBox.vue +++ b/src/components/CheckBox.vue @@ -20,7 +20,7 @@