With this transformer you can use and transform (ts, js, tsx and jsx) files
npm install --save-dev esbuild-jest esbuild
esbuild-jest transformer should be used in your Jest config file like this:
{
"transform": {
"^.+\\.tsx?$": "esbuild-jest"
}
}