freshollie / jest-dynalite

Jest preset to run Dynalite (DynamoDB local) per test runner
https://www.npmjs.com/package/jest-dynalite
MIT License
151 stars 16 forks source link

Writing jest-dynalite-config in TypeScript #52

Closed dragosrotaru closed 3 years ago

dragosrotaru commented 3 years ago

Hi, I would like to use the mock data functions I have in my typescript codebase for the dynalite config. Is there any way to do this?

freshollie commented 3 years ago

Hey! I'll look into this. It's possible that if I allow the config to be .ts then this will work, as under the hood I'm just using require to resolve the config file. I guess if ts-jest is transpiling anything from require this may work.

freshollie commented 3 years ago

I've created a PR for this, would be great if you could give it a once over and then I'll publish and you can have a test?

freshollie commented 3 years ago

@DragosRotaru looking for any feedback here. Is this what you are looking for?

dragosrotaru commented 3 years ago

@freshollie Thanks Ollie! I left 2 comments

freshollie commented 3 years ago

This has been published under v3.4.0