Migrate tests to typescript with `ts-jest`
See original GitHub issueTest cases are written in javascript and it depends on dist
, which causes 3 issues:
- coverage data is not clear for each module, only shows
sval.js
- need to run
start
, before runningtest
, and it’s easy to forget to runstart
script. - no intellisense support when writing test cases.
I will give a PR later.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Migration from <=23.10 | ts-jest - GitHub Pages
You can use the config:migrate tool of ts-jest CLI if you're coming from an older version to help you migrate your Jest configuration....
Read more >Migrating a react code base test from using `ts-jest` to babel-jest
Beauty of ts-jest is that it test the types written in typescript unlike the babel-jest that does transformation to commmonjs.
Read more >ts-jest/migrate.ts at main - config - GitHub
A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript. - ts-jest/migrate.ts at main ·...
Read more >Migrating to Jest
js or Tape you can automatically migrate with Jest Codemods (see below). If you like chai, you can upgrade to Jest and continue...
Read more >Setting up a project with jest in TypeScript. - ITNEXT
ts -jest is a TypeScript preprocessor for jest , that lets you use jest to test projects written in TypeScript.
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 Free
Top 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
umi-test
can resolve the issue, I just tested and have a new PR. because it usesbabel-jest
instead ofts-jest
issue 1 can be resolved with this pr