diff --git a/package.json b/package.json index 6c9d397ea..9bcb26944 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,13 @@ "jest": { "testEnvironment": "node", "coverageDirectory": "./coverage/", - "collectCoverage": true + "collectCoverage": true, + "collectCoverageFrom": [ + "src/**/*.js", + "!src/templates/*.js", + "!src/plugins/*.js", + "!src/helpers/utils.js" + ] }, "dependencies": { "@kazupon/vue-i18n-loader": "^0.4.0", diff --git a/test/fixtures/basic/nuxt.config.js b/test/fixtures/basic/nuxt.config.js index c4d1dd46a..08ba1e50e 100644 --- a/test/fixtures/basic/nuxt.config.js +++ b/test/fixtures/basic/nuxt.config.js @@ -1,15 +1,16 @@ const { resolve } = require('path') -const rootDir = resolve(__dirname, '../../..') module.exports = { - rootDir, + rootDir: resolve(__dirname, '../../..'), buildDir: resolve(__dirname, '.nuxt'), srcDir: __dirname, dev: false, render: { resourceHints: false }, - modules: [resolve(rootDir, 'src')], + modules: [ + { handler: require('../../../') } + ], i18n: { seo: true, baseUrl: 'nuxt-app.localhost',