I am trying to configure test coverage visualisation with reference to official documentation(https://docs.gitlab.com/ee/user/project/merge_requests/test_coverage_visualization.html), I tried with the same, but my pipeline failed hence no report is shown on merge requests, Our project stacks are NodeJS – Typescript. For testing we use JEST framework. I tried in many ways, but no luck. can anyone help me […]
- Tags "/js/**", "collectCoverage": true, "coveragePathIgnorePatterns": [ "/node_modules/", "globals": { "ts-jest": { "tsConfig": "tsconfig.json", "moduleFileExtensions": [ "ts", "transform": { "^.+\\.(ts|tsx)$": "ts-jest" }, [ 'jest-junit', }, }; package.json "scripts": { "unit-test": "jest --config='./jest_unit.config.js' --coverage --reporters=default --reporters=jest-junit --, $html, but my pipeline failed hence no report is shown on merge requests, but no coverage report on MR) test: stage: test tags: - ta_shop_release script: - npm install - npm run unit-test covera, but no luck. can anyone help me with this? .gitlab-ci.yml way 1 - did not work (pipeline failed) test: stage: test tags: - ta_shop, but none of them worked jest_unit.config.js /** * @file Jest Unit Test Configuration File */ module.exports = { roots: ['tests'], collectCoverageFrom: ['api/**/*.ts'], coverageReporters: ['text', how to enable code coverage in gitlab CICD?, I am trying to configure test coverage visualisation with reference to official documentation(https://docs.gitlab.com/ee/user/project/merge_r, I tried with the same, Our project stacks are NodeJS - Typescript. For testing we use JEST framework. I tried in many ways, reporters: [ 'default', testEnvironment: 'node', testRegex: '.*_unit.test.(js|ts|tsx)?$'