Absolute paths in React using craco (feat. TypeScript and …
Step3. Install craco and ts-jest. Step4. Create craco.config.js in your root folder and configure it for your bundler and testing library to know what @paths means. There are other ways around to declare moduleNameMapper in jest.configure. You can find it by following the ts-jest link below. Step5.