Currently, I am utilizing HJSON within a create-react-app project (view answer here). However, Jest does not utilize the same webpack configuration, resulting in a failed import of HJSON - for instance,
import options from '../assets/options.hjson';
simply assigns options
as the string '../assets/options.hjson'.
Therefore, the question remains: how can one successfully import an HJSON file using Jest?