module.exports = {
    name: "pdv-isp-b2e-rwc",
    preset: "jest-preset-angular",
    snapshotSerializers: [
        "jest-preset-angular/AngularSnapshotSerializer.js",
        "jest-preset-angular/HTMLCommentSerializer.js"
    ],
    setupFilesAfterEnv: [
        "<rootDir>/jest-setup.ts",
    ],
    transform: {
        '^.+\\.(ts|html)$': 'ts-jest'
    },
    resolver: '@nrwl/builders/plugins/jest/resolver',
    moduleFileExtensions: ['ts', 'js', 'html', 'json'],
    moduleNameMapper: {
        "\\.(css|less|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$":
            "<rootDir>/jest-file-mocks.js", // mock url-loader paths so ux-framework doesn"t break tests
        "^url-loader!../assets/favicons/(.*)$": "<rootDir>/jest-file-mocks.js",
    },
    collectCoverage: false, // must be false, otherwise local debug does not work. Must be true in angular.json!
    coverageDirectory: "../../coverage/pdv-isp-b2e-rwc",
    coverageReporters: ["html", "teamcity", "text-summary"],
    coveragePathIgnorePatterns: ['/node_modules/', 'testhelper.ts', '.*mock.*.ts$'],
    testRegex: [".*spec.ts$"],
    testResultsProcessor: "jest-teamcity-reporter",
    globals: {
        "ts-jest": {
          "tsConfig": "<rootDir>/tsconfig.spec.json"
        }
    }
};