I'm using the absolute path for imports in test.js(jest) files like below
import indexStore from '@/store/index'
import { SetExternalId } from '@/adapters/transfers/SetExternalId'
import { FileTransferHandler } from '@/lib/FileTransferHandler'
by using moduleNameMapper in jest.config.js.
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/src/$1"
},
But VS Code doesn't support for autocomplete feature when writing imports!
Autocomplete isn't supported:
Autocomplete for absolute path imports is supported for other files like .vue, .ts files but for test.js files.
How can I use autocomplete feature for absolute path imports in test files?
