Do you want to request a feature or report a bug?
bug
What is the current behavior?
I report an issue to ts-jest but no result.
I report it here
https://github.com/kulshekhar/ts-jest/issues/218
If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install and yarn test.
What is the expected behavior?
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
[describe the issue here]
transformIgnorePatterns is not work right, and it spends to much time.
For example:
"<rootDir>/node_modules/(?!lodash-es)/"
Expect not to scan node_modules exclude node_modules/lodash-es
This config is work right with js file, but spends to much time with ts file
Link to a minimal repo that reproduces this issue
/ts/: https://github.com/doxiaodong/jest-js-ts
Optional (but highly recommended) - Configure Travis (or your favorite system) with the minimal repo
js time spent: https://travis-ci.org/doxiaodong/jest-js-ts/builds/233507118#L530
ts time spent: https://travis-ci.org/doxiaodong/jest-js-ts/builds/233507118#L965
You use wrong regex. It should be:
"transformIgnorePatterns": [
"<rootDir>/node_modules/(?!lodash-es/)"
],
Thanks, sorry for this.
Most helpful comment
You use wrong regex. It should be: