denisraslov / snappify

A generator of Jest snapshot-based tests for React components written with TypeScript 📸
MIT License
70 stars 10 forks source link

Generate typescript files as output #2

Open sandipp opened 6 years ago

sandipp commented 6 years ago

Hi, This is an awesome project. I wanted to use this to generate boilerplate for developers for writing thier tests. But we are writing our tests as well in typescript so can I get the provision to generate typescript file as output instead of .js files.

Thanks.

denisraslov commented 5 years ago

Hi! Thank you!

Yes, I think an option for generation TypeScript files instead of .js files could be a useful feature.

Could you specify, do you need generated files to have .tsx extension only and the same content, or you also need some changes in files content syntax? If you need the changes in the content, could you provide an example of tests that you want to see as a result?