[Vuejs]-Jest and vue test utils can`t read imports start with '~' in testing components

0👍

My problem was related with aliases for folders and skipped folders in names in the node_modules, if you have some like this:
aliases

try to set this in the jest.config.js

config

transformIgnorePatterns for node_module aliases, moduleNameMapper for aliases in the project

Leave a comment