Answer the question
In order to leave comments, you need to log in
How to teach mocha to understand relative paths in test files?
The project uses the following relative paths to import dependencies:
import Preloader from 'oftenUsed/Preloader.jsx'
import gasStationApi from 'actions/gasStationApi.js'
context: path.join(__dirname, '../src'),
test
src
folder
folder
folder
componentForTest
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question