Closed vlopp closed 4 years ago
tsconfig.extend.json
{ "compilerOptions": { "baseUrl": "./src", "paths": { "$redux/*": ["redux/*"] } } }
Relevant excerpt from craco.config.js
craco.config.js
plugins: [ { plugin: CracoAlias, options: { baseUrl: "./src", tsConfigPath: "./tsconfig.extend.json", source: "tsconfig", debug:true } } ],
Produced Jest alias, as reported by the craco-alias debug output.
`"^$redux/(.*)$": "E:\\myProject\\src\\redux/$1"`
Issue: the dollar sign in the Jest regex is not escaped. Should be "^\$redux/(.*)$"
"^\$redux/(.*)$"
@vlopp Should be fixed in v2.1.1
tsconfig.extend.json
Relevant excerpt from
craco.config.js
Produced Jest alias, as reported by the craco-alias debug output.
Issue: the dollar sign in the Jest regex is not escaped. Should be
"^\$redux/(.*)$"