mediawiki-extensions-Growth.../documentation/frontend/vitest.config.js
Sergio Gimeno 4d6fdcd3fe [tests] Set a global coverage threshold for Vue files
Why:
 - Its easy to decrease coverage as we write more client
code with Vue
 - To help us pursue a better global coverage percentage

What:
 - Set global threshold for Vue files under modules directory
 - Set global threshol for Vue files under documentation/frontend

Bug: T324549
Depends-On: Id3bae3ded872d99320b5f7a60a8328c1d18c77f8
Change-Id: Ied9d2302a6ce4d7bf0f1e53df224115d02b9994d
2023-07-11 11:53:56 +00:00

25 行
418 B
JavaScript

'use strict';
const vue = require( '@vitejs/plugin-vue' );
const { defineConfig } = require( 'vite' );
module.exports = exports = defineConfig( {
plugins: [
vue()
],
test: {
environment: 'jsdom',
globals: true,
setupFiles: [ 'tests/setup.js' ],
coverage: {
include: [
'components/**/*.vue'
],
all: true,
lines: 78.1,
functions: 63.8,
branches: 91.1,
statements: 78.1
}
}
} );