I'm using HJSON in a create-react-app project (see answer here), but Jest doesn't use the same webpack configuration, so fails to import HJSON properly - e.g.
import options from '../assets/options.hjson';
just sets options
to the string '../assets/options.hjson'.
So how can you import an HJSON file using Jest?