Skip to content

Commit

Permalink
chore: collect coverage from src
Browse files Browse the repository at this point in the history
  • Loading branch information
aaharu committed Aug 13, 2019
1 parent 92fc0c2 commit 17f76a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 4 additions & 3 deletions test/fixtures/basic/nuxt.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 17f76a2

Please sign in to comment.