Add documentation on typescript (+webpack) support
See original GitHub issueMy project is typescript + webpack based and I ran into some dead ends during setup because of that. Especially in the report generation part, nyc
would always render an empty table even though the coverage file was there.
In the end I got the project running by using @istanbuljs/nyc-config-typescript
and adding the suggested .nycrc
file suggested in their documentation.
Hope it helps someone.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:13 (5 by maintainers)
Top Results From Across the Web
TypeScript - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >Using webpack with TypeScript - LogRocket Blog
Learn how to use webpack to compile TypeScript to JavaScript and bundle source code into a single JavaScript file.
Read more >Documentation - Integrating with Build Tools - TypeScript
Vite supports importing .ts files out-of-the-box. It only performs transpilation and not type checking. It also requires that some compilerOptions have certain ...
Read more >Integrating TypeScript with Webpack - Medium
In this lesson, we are going to learn how to compile a TypeScript project using Webpack. This setup becomes necessary if you want...
Read more >Using Webpack with TypeScript
Webpack is a popular tool that we can use to bundle all our JavaScript code into a single minified file. It is capable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bahmutov as promised ❤️ https://github.com/lluia/cypress-typescript-coverage-example
I am also currently struggling with this. My code is instrumented and there is an out.json being generated in .nyc_output but the coverage report is a blank table as described above. I have tried the OPs suggestion to no avail. Documentation on how this is supposed to work with .ts and webpack would be excellent, as I am currently floundering.