Usage with ts-jest
See original GitHub issueAs far as I understood, ts-jest supports typescript transformers with the astTransformers option. I tried to make it work like this in my jest.config.js:
globals: {
'ts-jest': {
astTransformers: {
before: ['ts-transformer-keys/transformer'],
},
},
},
This did not work and results in the error TypeError: ts_transformer_keys_1.keys is not a function
, which happens when the transform is not being applied. Any ideas?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
ts-jest - npm
A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript. Latest version: 29.0.3, ...
Read more >Testing a Typescript project with Jest (ts-jest) | nerd.vision
If you're unfamiliar with Jest as a testing framework then there's no need to worry, it's very simple to use and well documented....
Read more >Introduction | ts-jest - GitHub Pages
ts -jest is a Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.
Read more >kulshekhar/ts-jest - GitHub
A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript. It supports all features of...
Read more >Getting Started - Jest
ts -jest is a TypeScript preprocessor with source map support 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 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
This was brilliant - thank you! Never would’ve figured out how to get this working without your solution.
I managed to do it, I had to create a file like this:
And add it in jest.config.js like this:
I’ll create a PR adding an example and documentation