{"id":13656603,"url":"https://github.com/mcliment/typescript-karma-webpack-coverage-sample","last_synced_at":"2026-01-16T08:17:50.759Z","repository":{"id":40269073,"uuid":"108182190","full_name":"mcliment/typescript-karma-webpack-coverage-sample","owner":"mcliment","description":"The most basic example I can think of a Typescript project with Karma + Webpack + full coverage","archived":false,"fork":false,"pushed_at":"2025-09-25T08:57:30.000Z","size":1060,"stargazers_count":35,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-25T10:28:08.008Z","etag":null,"topics":["coverage","istanbul","karma","typescript","webpack"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcliment.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-24T20:51:20.000Z","updated_at":"2025-09-25T08:56:06.000Z","dependencies_parsed_at":"2023-11-21T23:26:16.569Z","dependency_job_id":"f2f9b47c-8863-4bc6-9ff7-3d3ed3b14238","html_url":"https://github.com/mcliment/typescript-karma-webpack-coverage-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mcliment/typescript-karma-webpack-coverage-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcliment%2Ftypescript-karma-webpack-coverage-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcliment%2Ftypescript-karma-webpack-coverage-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcliment%2Ftypescript-karma-webpack-coverage-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcliment%2Ftypescript-karma-webpack-coverage-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcliment","download_url":"https://codeload.github.com/mcliment/typescript-karma-webpack-coverage-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcliment%2Ftypescript-karma-webpack-coverage-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coverage","istanbul","karma","typescript","webpack"],"created_at":"2024-08-02T05:00:25.054Z","updated_at":"2026-01-16T08:17:50.735Z","avatar_url":"https://github.com/mcliment.png","language":"TypeScript","readme":"#  Typescript + Karma + Webpack + Coverage :sparkles:\n\n[![CircleCI](https://circleci.com/gh/mcliment/typescript-karma-webpack-coverage-sample.svg?style=svg)](https://circleci.com/gh/mcliment/typescript-karma-webpack-coverage-sample)\n![Node.js CI](https://github.com/mcliment/typescript-karma-webpack-coverage-sample/workflows/Node.js%20CI/badge.svg)\n[![codecov](https://codecov.io/gh/mcliment/typescript-karma-webpack-coverage-sample/branch/master/graph/badge.svg)](https://codecov.io/gh/mcliment/typescript-karma-webpack-coverage-sample) [![Known Vulnerabilities](https://snyk.io/test/github/mcliment/typescript-karma-webpack-coverage-sample/badge.svg?targetFile=package.json)](https://snyk.io/test/github/mcliment/typescript-karma-webpack-coverage-sample?targetFile=package.json)\n\nThe most basic example I can think of a Typescript project with Webpack + Karma + full coverage\n\n## Motivation :muscle:\n\nI tried many routes to make this work properly. Some people have enough with a coverage report from \nthe js file generated by webpack but I wanted a better user experience and invested some time finding\na good solution.\n\nIn the proposed solution, karma-typescript can be also used instead of going through the webpack route but\nin more complex scenarios reusing the main webpack configuration may be very convenient.\n\n## Notable packages :gift:\n\n- [istanbul-instrumenter-loader](https://github.com/webpack-contrib/istanbul-instrumenter-loader) to generate istanbul instrumentation data for coverage\n- [karma-coverage-istanbul-reporter](https://github.com/mattlewis92/karma-coverage-istanbul-reporter) to report coverage from istanbul\n- [karma-webpack](https://github.com/webpack-contrib/karma-webpack) to preprocess files through Webpack\n\n\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcliment%2Ftypescript-karma-webpack-coverage-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcliment%2Ftypescript-karma-webpack-coverage-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcliment%2Ftypescript-karma-webpack-coverage-sample/lists"}