ts-jest
transformer base class
A base class that can be used to implement a transformer for use with ts-jest.
Usage
Run
yarn add ts-jest-transformer --dev
then create your custom transformer:
// my-transformer.js const path = ;const TsJestTransformer = ; { // Write TS here const source = 'export default ' + JSON + ';'; return super; } moduleexports = ;
and finally add the according jest
config: