module.exports = {
    verbose: true,
    coverageReporters: ['html', 'text', 'cobertura'],
    reporters: ['default', 'jest-junit'],
    testResultsProcessor: 'jest-junit',
    preset: '@vue/cli-plugin-unit-jest',
    transform: { '^.+\\.vue$': '@vue/vue3-jest' },
    moduleFileExtensions: ['js', 'vue'],
    moduleNameMapper: {
        axios: 'axios/dist/browser/axios.cjs'
    },
    collectCoverageFrom: [
        'src/**/*.{js,vue}',
        '!src/main.js',
        '!src/constants/*.js',
        '!src/router/**/*.js',
        '!src/helpers/unit-test-helper.js'
    // END
    ], // ! means exclude from coverage.
    testMatch: ['**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'],
    coverageThreshold: {
        // global: {
        // statements: 80,
        // },
    }
};
