angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Unit test: Add reporter watermark configuration to angular.json

Open wein2011 opened this issue 1 month ago • 1 comments

Command

test

Description

After taking advantage of all the new Vitest unit test features in 21.0.0, there is only one configuration item left in the vitest-base.config.ts:

export default defineConfig({
  test: {
    slowTestThreshold: 1000
  }
});

This is required since the Vitest's slowTestThreshold default of 300 ms is not adequate for extended test cases.

Ideally this configuration should be available through the angular.json configuration unit-test options, since it would allow the complete removal of the vitest-base.config.ts file.

Maybe follow the nomenclature that you introduced with "coverageWatermarks" and call it "reporterWatermark".

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

wein2011 avatar Dec 02 '25 17:12 wein2011

This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.

You can find more details about the feature request process in our documentation.

angular-robot[bot] avatar Dec 03 '25 13:12 angular-robot[bot]