babel-plugin-require-context-hook icon indicating copy to clipboard operation
babel-plugin-require-context-hook copied to clipboard

alias: @ for src is not getting resolved, when running vue jest test

Open ashu99099 opened this issue 4 years ago • 0 comments

getting following error: `ENOENT: no such file or directory, scandir 'home/app/src/components/@/assets/icons'

at enumerateFiles (node_modules/babel-plugin-require-context-hook/register.js:12:8) at context (node_modules/babel-plugin-require-context-hook/register.js:27:16)`

The @ is being treated literally. since '@' is an alias for 'src'. The directory it should be looking at should be: 'src/assets/icons' (which is resolved from '@/assets/icons')

How can make babel-plugin-require-context-hook to resolve alias '@' to 'src'?

ashu99099 avatar Sep 01 '21 06:09 ashu99099