镜像自地址
https://github.com/wikimedia/mediawiki-extensions-GrowthExperiments.git
已同步 2024-06-03 02:40:34 +08:00
4d6fdcd3fe
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
25 行
418 B
JavaScript
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
|
|
}
|
|
}
|
|
} );
|