https://github.com/codecov/typescript-standard
Codecov coverage standard for TypeScript
https://github.com/codecov/typescript-standard
codecov coverage-reports typescript
Last synced: about 1 month ago
JSON representation
Codecov coverage standard for TypeScript
- Host: GitHub
- URL: https://github.com/codecov/typescript-standard
- Owner: codecov
- License: mit
- Created: 2019-07-23T04:47:07.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-12-05T22:55:10.000Z (6 months ago)
- Last Synced: 2025-04-11T15:10:26.345Z (about 1 month ago)
- Topics: codecov, coverage-reports, typescript
- Language: JavaScript
- Homepage:
- Size: 9.3 MB
- Stars: 9
- Watchers: 10
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# TypeScript-Standard
[](https://github.com/codecov/typescript-standard/actions/workflows/typescript-standard.yml) [](https://codecov.io/gh/codecov/TypeScript-Standard)
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Ftypescript-standard?ref=badge_shield)### Last Updated: 09/14/23 00:12:50
## What is this?
This is a **TypeScript** application, with basic unit tests, for which coverage is uploaded to Codecov on a daily basis. It can also serve as an example for how to integrate Codecov into your TypeScript project. If the build is passing for this project, then Codecov's TypeScript report processing is functional and correct on codecov.io.
## Configuration
This project is written in `TypeScript 3.5.3`. Unit tests are written with the `Jest` testing framework. Coverage reports are also generated via `Jest`.
Unit tests: `src/index.test.ts` which tests `src/index.ts`
## Errors Generating TypeScript Reports
In some instances, there may be errors where coverage reports target transpiled JavaScript files instead of TypeScript files. This is most likely due to the fact that your test runner configuration is not set properly.
[Example repository with Jest config](https://github.com/drazisil/mco-server/blob/master/package.json#L71-L96)
## Reporting Issues
If you've discovered an issue with this repository or with TypeScript processing in general, it is recommended to email [email protected] rather than post an issue here. This repository will not be checked regularly for open issues.
## Contributing
Contributions are welcome! If you'd like to contribute to this repository, feel free to open a pull request or flag an issue. If you would like to contribute a new lanaguage standard, [you can get more information here](https://github.com/codecov/standards-scripts/blob/master/README.md#contributing).
## License
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Ftypescript-standard?ref=badge_large)