Debian Codegraph @

skins/Vector/jest.config.js

raw symbols SCIP
1 'use strict';
2
3 // For a detailed explanation regarding each configuration property, visit:
4 // https://jestjs.io/docs/en/configuration.html
5
6 module.exports = {
7 moduleNameMapper: {
8 '@wikimedia/codex-search': '@wikimedia/codex',
9 '^./templates/(.*).mustache': '<rootDir>/includes/templates/$1.mustache'
10 },
11
12 // Automatically clear mock calls and instances between every test
13 clearMocks: true,
14
15 // Indicates whether the coverage information should be collected while executing the test
16 collectCoverage: true,
17
18 // An array of glob patterns indicating a set of files fo
19 // which coverage information should be collected
20 collectCoverageFrom: [
21 'resources/**/*.(js|vue)'
22 ],
23
24 // The directory where Jest should output its coverage files
25 coverageDirectory: 'coverage',
26
27 // An array of regexp pattern strings used to skip coverage collection
28 coveragePathIgnorePatterns: [
29 '/node_modules/'
30 ],
31
32 // An object that configures minimum threshold enforcement for coverage results
33 coverageThreshold: {
34 global: {
35 branches: 35,
36 functions: 45,
37 lines: 48,
38 statements: 48
39 }
40 },
41
42 // An array of file extensions your modules use
43 moduleFileExtensions: [
44 'js',
45 'json',
46 'vue'
47 ],
48
49 modulePathIgnorePatterns: [
50 '<rootDir>/tests/integration-qunit/'
51 ],
52
53 // The paths to modules that run some code to configure or
54 // set up the testing environment before each test
55 setupFiles: [
56 './jest.setup.js'
57 ],
58
59 testEnvironment: 'jsdom',
60
61 transform: {
62 '^.+\\.mustache?$': 'mustache-jest',
63 '.*\\.(vue)$': '<rootDir>/node_modules/@vue/vue3-jest'
64 }
65 };