Passed
Push — feature/jest ( 0a5f2e...699227 )
by Falk
02:29
created

build/jest.config.coverage.js   A

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 16
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
nc 1
dl 0
loc 16
rs 10
c 1
b 0
f 0
wmc 0
mnd 0
bc 0
fnc 0
bpm 0
cpm 0
noi 0
1
module.exports = {
2
	verbose: true,
3
	collectCoverage: true,
4
	coverageDirectory: '<rootDir>/test/unit/coverage',
5
	testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.jsx?$",
6
	rootDir: '../',
7
	preset: null,
8
	moduleNameMapper: {
9
		'^@/(.*)$': '<rootDir>/src/$1',
10
		'^vue$': 'vue/dist/vue.common.js',
11
	},
12
	moduleFileExtensions: ["vue", "js", "json", "jsx"],
13
	transform: {
14
		'.js$': '<rootDir>/node_modules/babel-jest',
15
		'.*\\.(vue)$': '<rootDir>/node_modules/jest-vue'
16
	},
17
	collectCoverageFrom: [
18
		'src/**/*.{js,vue}',
19
		'!**/node_modules/**'
20
	]
21
};
22