Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 391 Bytes

README.md

File metadata and controls

12 lines (7 loc) · 391 Bytes

Testing typescript project with absolute paths

This project was bootstrapped with Create React App.

Problem

in App.tsx I want to import MyComp with absolute path (src/MyComp) instead than relative path (./MyComp) This works out of the box on run, but not on test

Solution

Set NODE_PATH=. environment before running tests