davestewart / alias-hq

The end-to-end solution for configuring, refactoring, maintaining and using path aliases
https://davestewart.co.uk/projects/open-source/alias-hq/
MIT License
330 stars 11 forks source link

hq-alias in jest config file does not work #34

Closed TimCrooker closed 2 years ago

TimCrooker commented 2 years ago

Still getting errors from jest when running tests after integrating this into my jest.config.js file

error from jest: Test suite failed to run

Cannot find module '@/error' from 'src/generator/prompt/index.ts'
// jest.config.js: 
import hq from 'alias-hq'

const config = {
    verbose: true,
    testEnvironment: 'node',
    modulePathIgnorePatterns: ['dist'],
    moduleNameMapper: hq.get('jest'),
}

export default config
davestewart commented 2 years ago

Did you check the CLI debugging options?

davestewart commented 2 years ago

Ah. Closed. You solved it?

TimCrooker commented 2 years ago

yes I got it to work

On Mon, Nov 22, 2021 at 9:32 AM Dave Stewart @.***> wrote:

Ah. Closed. You solved it?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.