Code Coverage output in Typescript Code Repos

This was previously asked but never got a response.

Can Palantir turn on coverage for everyone or let us turn it on somewhere where it won’t get overwritten?

I was able to add code coverage and it works great:

Unfortunately, the changes are in a file that has this line:

// DO NOT MODIFY THIS FILE. Changes will be overwritten when the repository upgrades.

2 Likes

Is this the setting you are looking for ?
https://www.palantir.com/docs/foundry/transforms-python/unit-tests/#test-coverage

i am asking about typescript. the link you posted is about python

As of 0.828.0 of functions-typescript (you can view the version of your repo in the templateConfig.json file) the jest configuration will not be overwritten.

Note that changing the jest configuration may conflict with the default overrides we provide and we’d suggest spreading the configuration we import by default in jest.config.js after any fields you set.